projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Move from newlib-nano to picolibc
[fw/altos]
/
src
/
stmf0
/
ao_flash_stm.c
diff --git
a/src/stmf0/ao_flash_stm.c
b/src/stmf0/ao_flash_stm.c
index 2d57eea72701eefeae6e61ad0a6fc0395cf2dac7..896d536ba0c1612e7fe341b4a4da0d399aa445ba 100644
(file)
--- a/
src/stmf0/ao_flash_stm.c
+++ b/
src/stmf0/ao_flash_stm.c
@@
-52,7
+52,7
@@
ao_flash_lock(void)
#define ao_flash_wait_bsy() do { while (stm_flash.sr & (1 << STM_FLASH_SR_BSY)); } while (0)
#define ao_flash_wait_bsy() do { while (stm_flash.sr & (1 << STM_FLASH_SR_BSY)); } while (0)
-static void __attribute__ ((section(".
ramtext"),
noinline))
+static void __attribute__ ((section(".
sdata2.flash"),
noinline))
_ao_flash_erase_page(uint32_t *page)
{
stm_flash.cr |= (1 << STM_FLASH_CR_PER);
_ao_flash_erase_page(uint32_t *page)
{
stm_flash.cr |= (1 << STM_FLASH_CR_PER);
@@
-103,7
+103,7
@@
ao_flash_erase_page(uint32_t *page)
ao_arch_release_interrupts();
}
ao_arch_release_interrupts();
}
-static void __attribute__ ((section(".
ramtext
"), noinline))
+static void __attribute__ ((section(".
sdata2.flash
"), noinline))
_ao_flash_page(uint16_t *dst, uint16_t *src)
{
uint8_t i;
_ao_flash_page(uint16_t *dst, uint16_t *src)
{
uint8_t i;