OpenMV Feature: RTC.memory()
Description
RTC.memory() working for the STM32, MIMXRT, and Alif on the machine module.
Also, standardize the RTC API on these ports. They all implement the machine API in somewhat different ways.
Code Size
No response
Implementation
I hope the MicroPython maintainers or community will implement this feature
Code of Conduct
Yes, I agree
esp32/machine_rtc: Add prefix to rtc user mem macro.
When working with ESP32 C modules, you may want to put symbols/data/code in to RTC memory so that you can write a deepsleep stub, or use the ULP on the ESP32. When doing so, the RTC memory region can sometimes overflow at linker time due to the allocations made within the ESP32 RTC module.
This fix allows modifying the size of that memory region in your board config to decrease the size, by adding #define MICROPY_HW_RTC_USER_MEM_MAX 512 for example, the RTC module's user memory region would be decreased from 2K to 512 bytes, giving you space for other content outside of MicroPython.
This fix both renames the macro to something more suited for configuration use and allows it to be defined outside of the RTC module.