summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp8266/tutorial
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-02-05 15:48:28 +1100
committerDamien George <damien.p.george@gmail.com>2018-02-05 15:52:36 +1100
commit4607be3768b0f6fd187fb7f17545ec3a7d28b94c (patch)
tree2ea5a22b9aa67d9e50e99d340b020dc6c1cab76a /docs/esp8266/tutorial
parent12464f1bd2c63af012d1ce47c79f9afbfefd71e2 (diff)
downloadmicropython-4607be3768b0f6fd187fb7f17545ec3a7d28b94c.tar.gz
micropython-4607be3768b0f6fd187fb7f17545ec3a7d28b94c.zip
stm32/main: Reorder some init calls to put them before soft-reset loop.
The calls to rtc_init_start(), sdcard_init() and storage_init() are all guarded by a check for first_soft_reset, so it's simpler to just put them all before the soft-reset loop, without the check. The call to machine_init() can also go before the soft-reset loop because it is only needed to check the reset cause which can happen once at the first boot. To allow this to work, the reset cause must be set to SOFT upon a soft-reset, which is the role of the new function machine_deinit().
Diffstat (limited to 'docs/esp8266/tutorial')
0 files changed, 0 insertions, 0 deletions