diff options
author | danicampora <danicampora@gmail.com> | 2015-03-04 13:52:39 +0100 |
---|---|---|
committer | danicampora <danicampora@gmail.com> | 2015-03-11 17:00:33 +0100 |
commit | 9e44383e3f4092940a1e1b49a278978df99f7b08 (patch) | |
tree | 606ad67566b41bb037bd02e678891dfb69db6c70 /cc3200/mods/pybrtc.c | |
parent | 73aee8da54f847341d0fd9718d05ca964654a6dd (diff) |
cc3200: Add power management framework. Add mpcallback class.
Supports suspend and hibernate modes. Waking is possible throug GPIO
and WLAN.
The mpcallback class is generic and can be reused by other classes.
Diffstat (limited to 'cc3200/mods/pybrtc.c')
-rw-r--r-- | cc3200/mods/pybrtc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cc3200/mods/pybrtc.c b/cc3200/mods/pybrtc.c index 1844a6d7f..574466201 100644 --- a/cc3200/mods/pybrtc.c +++ b/cc3200/mods/pybrtc.c @@ -53,16 +53,16 @@ __attribute__ ((section (".boot"))) void pybrtc_init(void) { - // if RTC was previously set leave it alone + // if the RTC was previously set, leave it alone if (MAP_PRCMSysResetCauseGet() == PRCM_POWER_ON) { - // fresh reset; configure RTC Calendar + // fresh reset; configure the RTC Calendar // set the date to 1st Jan 2015 // set the time to 00:00:00 uint32_t seconds = mod_time_seconds_since_2000(2015, 1, 1, 0, 0, 0); MAP_PRCMRTCSet(seconds, 0); - // Mark that the RTC is in use + // Mark the RTC in use MAP_PRCMRTCInUseSet(); } } @@ -90,7 +90,7 @@ STATIC mp_obj_t pyb_rtc_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n /// Get or set the date and time of the RTC. /// /// With no arguments, this method returns an 8-tuple with the current -/// date and time. With 1 argument (being an 8-tuple) it sets the date +/// date and time. With 1 argument (being an 8-tuple) it sets the date /// and time. /// /// The 8-tuple has the following format: |