summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/portmodules.h
diff options
context:
space:
mode:
authorblmorris <bryan.morrissey@gmail.com>2014-07-21 12:50:10 -0400
committerblmorris <bryan.morrissey@gmail.com>2014-07-21 12:50:10 -0400
commit721d6240c951d7f38289fdfb702536dfa155fdd8 (patch)
tree84ba9fba1218648f73f38346b30ad847437d3046 /stmhal/portmodules.h
parentef204733d6abc31b09e4e7823d4665fafebd87ed (diff)
parent4038f513ea0a6be75ecbc4d8ab2bbe2349524bca (diff)
downloadmicropython-721d6240c951d7f38289fdfb702536dfa155fdd8.tar.gz
micropython-721d6240c951d7f38289fdfb702536dfa155fdd8.zip
Merge https://github.com/blmorris/micropython into Myriad2
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 f38feafe78..d8a3d8f879 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);