refactor: IWDG driver and EM trigger (#3846)

This commit is contained in:
Raphael Coeffic
2023-12-04 07:14:25 +10:00
committed by GitHub
parent e18a2a90a4
commit 5153aaeea0
89 changed files with 1204 additions and 3202 deletions
@@ -0,0 +1,11 @@
PROVIDE(_heap_start = _eram);
/* Reserve stack and heap space in RAM */
.stack(NOLOAD) :
{
. = ALIGN(4);
. = . + MIN_HEAP_SIZE;
. = . + MAIN_STACK_SIZE;
. = ALIGN(4);
} > REGION_RAM
@@ -0,0 +1,26 @@
/* Highest address of the user mode stack */
STACK_ADDRESS = ORIGIN(RAM) + LENGTH(RAM); /* end of RAM */
/* Required amount of stack for interrupt stack (Main stack) */
MAIN_STACK_SIZE = 1024;
/* Maximum bootloader code size */
BOOTLOADER_SIZE = 0x8000;
/* Minimum Heap Size (indicative) */
MIN_HEAP_SIZE = 0;
/* Highest heap address */
HEAP_ADDRESS = STACK_ADDRESS - MAIN_STACK_SIZE;
/* Specify the memory areas */
MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 320K
}
REGION_ALIAS("REGION_DATA", RAM);
REGION_ALIAS("REGION_BSS", RAM);
REGION_ALIAS("REGION_RAM", RAM);