X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm32f1%2Fao_flash_stm.c;fp=src%2Fstm32f1%2Fao_flash_stm.c;h=48c702f7a8d893a9e5af316d5323610326846b75;hb=4e9dbae68893181165b2c3a3f111b12cb86c7eb6;hp=0e873d774ec6dbcaf6de5cb6440cd0fd27a913fa;hpb=c4cc908d642ea1c52c07b80106b5463e22f3c888;p=fw%2Faltos diff --git a/src/stm32f1/ao_flash_stm.c b/src/stm32f1/ao_flash_stm.c index 0e873d77..48c702f7 100644 --- a/src/stm32f1/ao_flash_stm.c +++ b/src/stm32f1/ao_flash_stm.c @@ -72,12 +72,12 @@ stm_flash_page_size(void) uint16_t dev_id = stm_dev_id(); switch (dev_id) { - case 0x440: /* stm32f05x */ - case 0x444: /* stm32f03x */ - case 0x445: /* stm32f04x */ + case 0x412: /* low-density devices */ + case 0x410: /* medium-density devices */ return 1024; - case 0x442: /* stm32f09x */ - case 0x448: /* stm32f07x */ + case 0x414: /* high-density devices */ + case 0x430: /* XL-density devices */ + case 0x418: /* Connectivity devices */ return 2048; } ao_panic(AO_PANIC_FLASH);