summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/portmodules.h
diff options
context:
space:
mode:
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);