X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm32f1%2Fao_flash_stm.c;h=48c702f7a8d893a9e5af316d5323610326846b75;hb=cea0f40fff14b9d2085e0026a68b742a4b114cb9;hp=0e873d774ec6dbcaf6de5cb6440cd0fd27a913fa;hpb=58f013162125b2143a5a9f1c0544cb20817e9524;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);