aboutsummaryrefslogtreecommitdiff
path: root/stmhal/portmodules.h
diff options
context:
space:
mode:
authorblmorris2014-07-21 12:47:57 -0400
committerblmorris2014-07-21 12:47:57 -0400
commit4038f513ea0a6be75ecbc4d8ab2bbe2349524bca (patch)
tree2aace8a3551d5c397ec539865bbb2f6cdbc8d900 /stmhal/portmodules.h
parent0f4ee2e44a1e47258a8b07fb25e28286d131390c (diff)
parent951ed9d02ffc826c68ee3af26c3530477e7e6156 (diff)
Merge https://github.com/micropython/micropython
Diffstat (limited to 'stmhal/portmodules.h')
-rw-r--r--stmhal/portmodules.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/stmhal/portmodules.h b/stmhal/portmodules.h
index f38feafe7..d8a3d8f87 100644
--- a/stmhal/portmodules.h
+++ b/stmhal/portmodules.h
@@ -28,3 +28,8 @@ extern const mp_obj_module_t os_module;
extern const mp_obj_module_t pyb_module;
extern const mp_obj_module_t stm_module;
extern const mp_obj_module_t time_module;
+
+// additional helper functions exported by the modules
+
+mp_uint_t mod_time_year_day(mp_uint_t year, mp_uint_t month, mp_uint_t date);
+mp_uint_t mod_time_seconds_since_2000(mp_uint_t year, mp_uint_t month, mp_uint_t date, mp_uint_t hour, mp_uint_t minute, mp_uint_t second);