projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stm32f1: Get boot loader working
[fw/altos]
/
src
/
stm32f1
/
ao_flash_stm.c
diff --git
a/src/stm32f1/ao_flash_stm.c
b/src/stm32f1/ao_flash_stm.c
index 0e873d774ec6dbcaf6de5cb6440cd0fd27a913fa..48c702f7a8d893a9e5af316d5323610326846b75 100644
(file)
--- 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) {
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;
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);
return 2048;
}
ao_panic(AO_PANIC_FLASH);