summaryrefslogtreecommitdiff
path: root/extmod/btstack/modbluetooth_btstack.c
diff options
context:
space:
mode:
authorThomas Wenrich <twenrich@gmail.com>2021-05-22 13:38:20 +0200
committerDamien George <damien@micropython.org>2023-12-06 13:31:13 +1100
commit78b3fe56897d029f2786256d83dd2fecacb34637 (patch)
tree6afcdd2238cdb48085dc69f6b15af4b0fd6c062a /extmod/btstack/modbluetooth_btstack.c
parentd3595fed2b9c6cb183425963e3181c193c53b7a4 (diff)
esp32/machine_rtc: Preserve RTC user memory over most reset causes.
The user memory area - accessible by machine.RTC.memory() -- will now survive most reboot causes. A power-on reset (also caused by the EN pin on some boards) will clean the memory. When this happens, the magic number not found in the user memory will cause initialization. After other resets (triggered by watchdogs, machine.reset(), ...), the user is responsible to check and validate the contents of the user area. This new behaviour can be changed by enabling MICROPY_HW_RTC_MEM_INIT_ALWAYS: in that case the RTC memory is always cleared on boot. Signed-off-by: Thomas Wenrich <twenrich@gmail.com>
Diffstat (limited to 'extmod/btstack/modbluetooth_btstack.c')
0 files changed, 0 insertions, 0 deletions