diff options
Diffstat (limited to 'ports/zephyr/modzephyr.c')
-rw-r--r-- | ports/zephyr/modzephyr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/zephyr/modzephyr.c b/ports/zephyr/modzephyr.c index 781eb22035..e24bdd0b9f 100644 --- a/ports/zephyr/modzephyr.c +++ b/ports/zephyr/modzephyr.c @@ -4,6 +4,7 @@ * The MIT License (MIT) * * Copyright (c) 2017 Linaro Limited + * Copyright (c) 2019 NXP * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -31,6 +32,7 @@ #include <zephyr.h> #include <debug/stack.h> +#include "modzephyr.h" #include "py/runtime.h" STATIC mp_obj_t mod_is_preempt_thread(void) { @@ -90,6 +92,9 @@ STATIC const mp_rom_map_elem_t mp_module_time_globals_table[] = { #ifdef CONFIG_NET_SHELL { MP_ROM_QSTR(MP_QSTR_shell_net_iface), MP_ROM_PTR(&mod_shell_net_iface_obj) }, #endif + #ifdef CONFIG_DISK_ACCESS + { MP_ROM_QSTR(MP_QSTR_DiskAccess), MP_ROM_PTR(&zephyr_disk_access_type) }, + #endif }; STATIC MP_DEFINE_CONST_DICT(mp_module_time_globals, mp_module_time_globals_table); |