use enum and designated initializers in soc_memory_type define

This commit is contained in:
wuzhenghui
2022-07-29 10:51:08 +08:00
parent 70eabb5492
commit 5e8ba9cea8
7 changed files with 84 additions and 60 deletions

View File

@@ -8,7 +8,7 @@
*
* ESP32-C2 ROM static data usage is as follows:
* - 0x3fccb264 - 0x3fcdcb70: Shared buffers, used in UART/USB/SPI download mode only
* - 0x3fcdcb70 - 0x3fcdeb70: APP CPU stack, can be reclaimed as heap after RTOS startup
* - 0x3fcdcb70 - 0x3fcdeb70: PRO CPU stack, can be reclaimed as heap after RTOS startup
* - 0x3fcdeb70 - 0x3fce0000: ROM .bss and .data (not easily reclaimable)
*
* The 2nd stage bootloader can take space up to the end of ROM shared