summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/mods/modutime.h
diff options
context:
space:
mode:
authordanicampora <danicampora@gmail.com>2015-03-04 13:52:39 +0100
committerdanicampora <danicampora@gmail.com>2015-03-11 17:00:33 +0100
commit9e44383e3f4092940a1e1b49a278978df99f7b08 (patch)
tree606ad67566b41bb037bd02e678891dfb69db6c70 /cc3200/mods/modutime.h
parent73aee8da54f847341d0fd9718d05ca964654a6dd (diff)
downloadmicropython-9e44383e3f4092940a1e1b49a278978df99f7b08.tar.gz
micropython-9e44383e3f4092940a1e1b49a278978df99f7b08.zip
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/modutime.h')
-rw-r--r--cc3200/mods/modutime.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cc3200/mods/modutime.h b/cc3200/mods/modutime.h
index 5f1e8ed746..bc2be9cfa2 100644
--- a/cc3200/mods/modutime.h
+++ b/cc3200/mods/modutime.h
@@ -25,6 +25,9 @@
* THE SOFTWARE.
*/
+#ifndef MODUOS_H_
+#define MODUOS_H_
+
typedef struct {
uint16_t tm_year; // i.e. 2014
uint8_t tm_mon; // 1..12
@@ -41,3 +44,5 @@ extern mp_uint_t mod_time_seconds_since_2000(mp_uint_t year, mp_uint_t month, mp
mp_uint_t hour, mp_uint_t minute, mp_uint_t second);
extern void mod_time_seconds_since_2000_to_struct_time(mp_uint_t t, mod_struct_time *tm);
+
+#endif // MODUOS_H_