summaryrefslogtreecommitdiffstatshomepage
path: root/windows/mpconfigport.h
diff options
context:
space:
mode:
authorstijn <stinos@zoho.com>2014-05-08 10:56:33 +0200
committerstijn <stinos@zoho.com>2014-05-09 13:58:15 +0200
commit5ed284a15e028e0435f3b6e0773e14225d8f165d (patch)
treeb83683ee2d84e423cc00cf630ebb688430a119c4 /windows/mpconfigport.h
parentd25cba4f642e50e2f713b48f5f079036b352f72d (diff)
downloadmicropython-5ed284a15e028e0435f3b6e0773e14225d8f165d.tar.gz
micropython-5ed284a15e028e0435f3b6e0773e14225d8f165d.zip
windows: Add modtime implementation
Diffstat (limited to 'windows/mpconfigport.h')
-rw-r--r--windows/mpconfigport.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/windows/mpconfigport.h b/windows/mpconfigport.h
index 3651a6120f..0a1e313cb8 100644
--- a/windows/mpconfigport.h
+++ b/windows/mpconfigport.h
@@ -44,6 +44,7 @@
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_DOUBLE)
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
#define MICROPY_PORT_INIT_FUNC init()
+#define MICROPY_PORT_DEINIT_FUNC deinit()
// type definitions for the specific machine
@@ -69,9 +70,15 @@ extern const struct _mp_obj_fun_native_t mp_builtin_open_obj;
#define MICROPY_EXTRA_BUILTINS \
{ MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj },
+extern const struct _mp_obj_module_t mp_module_time;
+#define MICROPY_EXTRA_BUILTIN_MODULES \
+ { MP_OBJ_NEW_QSTR(MP_QSTR_time), (mp_obj_t)&mp_module_time }, \
+
#include "realpath.h"
#include "init.h"
+// sleep for given number of milliseconds
+void msec_sleep(double msec);
// MSVC specifics
#ifdef _MSC_VER