summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-09-08 12:50:38 +1000
committerDamien George <damien.p.george@gmail.com>2016-09-08 12:50:38 +1000
commitf3b5480be7243684e31e4631e3da49c725fa7234 (patch)
tree35f6c9caffb4dc4633e3fe29bf580657f9769eb8 /stmhal
parentdab0f316d26f4c77c94d9e51c35d5f63ed118d3c (diff)
downloadmicropython-f3b5480be7243684e31e4631e3da49c725fa7234.tar.gz
micropython-f3b5480be7243684e31e4631e3da49c725fa7234.zip
stmhal,cc3200,esp8266: Consistently use PWRON_RESET constant.
machine.POWER_ON is renamed to machine.PWRON_RESET to match other reset-cause constants that all end in _RESET. The cc3200 port keeps a legacy definition of POWER_ON for backwards compatibility.
Diffstat (limited to 'stmhal')
-rw-r--r--stmhal/modmachine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/modmachine.c b/stmhal/modmachine.c
index dbeabec55b..ca17eff807 100644
--- a/stmhal/modmachine.c
+++ b/stmhal/modmachine.c
@@ -543,7 +543,7 @@ STATIC const mp_map_elem_t machine_module_globals_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_SLEEP), MP_OBJ_NEW_SMALL_INT(PYB_PWR_MODE_LPDS) },
{ MP_OBJ_NEW_QSTR(MP_QSTR_DEEPSLEEP), MP_OBJ_NEW_SMALL_INT(PYB_PWR_MODE_HIBERNATE) },
#endif
- { MP_OBJ_NEW_QSTR(MP_QSTR_POWER_ON), MP_OBJ_NEW_SMALL_INT(PYB_RESET_POWER_ON) },
+ { MP_OBJ_NEW_QSTR(MP_QSTR_PWRON_RESET), MP_OBJ_NEW_SMALL_INT(PYB_RESET_POWER_ON) },
{ MP_OBJ_NEW_QSTR(MP_QSTR_HARD_RESET), MP_OBJ_NEW_SMALL_INT(PYB_RESET_HARD) },
{ MP_OBJ_NEW_QSTR(MP_QSTR_WDT_RESET), MP_OBJ_NEW_SMALL_INT(PYB_RESET_WDT) },
{ MP_OBJ_NEW_QSTR(MP_QSTR_DEEPSLEEP_RESET), MP_OBJ_NEW_SMALL_INT(PYB_RESET_DEEPSLEEP) },