[doc] Human-readable flash_type in chip-id files

(Closes #1155)
pull/1302/head
nightwalker-87 2023-04-08 02:16:48 +02:00
rodzic 1d301a5498
commit 1745bf5193
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -83,6 +83,7 @@ void process_chipfile(char *fname) {
} else if (strcmp(word, "flash_type") == 0) {
buf[strlen(buf) - 1] = 0; // chomp newline
sscanf(buf, "%*s %n", &nc);
// Match human readable flash_type with enum stm32_flash_type { }.
if (strcmp(value, "F0_F1_F3") == 0) {
ts->flash_type = STM32_FLASH_TYPE_F0_F1_F3;
} else if (strcmp(value, "F1_XL") == 0) {