Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
6cc1a7a2
Commit
6cc1a7a2
authored
Mar 31, 2017
by
Paul Sokolovsky
Browse files
zephyr: Integrate modusocket into build.
parent
d1015f0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
zephyr/Makefile
View file @
6cc1a7a2
...
...
@@ -33,6 +33,7 @@ INC += -I$(ZEPHYR_BASE)/net/ip/contiki/os
SRC_C
=
main.c
\
help.c
\
modusocket.c
\
modutime.c
\
modzephyr.c
\
modmachine.c
\
...
...
zephyr/mpconfigport.h
View file @
6cc1a7a2
...
...
@@ -60,6 +60,11 @@
#define MICROPY_PY_MACHINE (1)
#define MICROPY_MODULE_WEAK_LINKS (1)
#define MICROPY_PY_STRUCT (0)
#ifdef CONFIG_NETWORKING
// If we have networking, we likely want errno comfort
#define MICROPY_PY_UERRNO (1)
#define MICROPY_PY_USOCKET (1)
#endif
#define MICROPY_PY_UTIME (1)
#define MICROPY_PY_UTIME_MP_HAL (1)
#define MICROPY_PY_ZEPHYR (1)
...
...
@@ -103,6 +108,7 @@ typedef long mp_off_t;
extern
const
struct
_mp_obj_module_t
mp_module_machine
;
extern
const
struct
_mp_obj_module_t
mp_module_time
;
extern
const
struct
_mp_obj_module_t
mp_module_usocket
;
extern
const
struct
_mp_obj_module_t
mp_module_zephyr
;
#if MICROPY_PY_UTIME
...
...
@@ -119,11 +125,13 @@ extern const struct _mp_obj_module_t mp_module_zephyr;
#define MICROPY_PORT_BUILTIN_MODULES \
{ MP_OBJ_NEW_QSTR(MP_QSTR_machine), (mp_obj_t)&mp_module_machine }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_usocket), (mp_obj_t)&mp_module_usocket }, \
MICROPY_PY_UTIME_DEF \
MICROPY_PY_ZEPHYR_DEF \
#define MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS \
{ MP_OBJ_NEW_QSTR(MP_QSTR_time), MP_ROM_PTR(&mp_module_time) }, \
{ MP_OBJ_NEW_QSTR(MP_QSTR_socket), MP_ROM_PTR(&mp_module_usocket) }, \
// extra built in names to add to the global namespace
#define MICROPY_PORT_BUILTINS \
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment