Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
6cc1a7a2
Commit
6cc1a7a2
authored
Mar 30, 2017
by
Paul Sokolovsky
Browse files
Options
Downloads
Patches
Plain Diff
zephyr: Integrate modusocket into build.
parent
d1015f0e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
zephyr/Makefile
+1
-0
1 addition, 0 deletions
zephyr/Makefile
zephyr/mpconfigport.h
+8
-0
8 additions, 0 deletions
zephyr/mpconfigport.h
with
9 additions
and
0 deletions
zephyr/Makefile
+
1
−
0
View file @
6cc1a7a2
...
@@ -33,6 +33,7 @@ INC += -I$(ZEPHYR_BASE)/net/ip/contiki/os
...
@@ -33,6 +33,7 @@ INC += -I$(ZEPHYR_BASE)/net/ip/contiki/os
SRC_C
=
main.c
\
SRC_C
=
main.c
\
help.c
\
help.c
\
modusocket.c
\
modutime.c
\
modutime.c
\
modzephyr.c
\
modzephyr.c
\
modmachine.c
\
modmachine.c
\
...
...
This diff is collapsed.
Click to expand it.
zephyr/mpconfigport.h
+
8
−
0
View file @
6cc1a7a2
...
@@ -60,6 +60,11 @@
...
@@ -60,6 +60,11 @@
#define MICROPY_PY_MACHINE (1)
#define MICROPY_PY_MACHINE (1)
#define MICROPY_MODULE_WEAK_LINKS (1)
#define MICROPY_MODULE_WEAK_LINKS (1)
#define MICROPY_PY_STRUCT (0)
#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 (1)
#define MICROPY_PY_UTIME_MP_HAL (1)
#define MICROPY_PY_UTIME_MP_HAL (1)
#define MICROPY_PY_ZEPHYR (1)
#define MICROPY_PY_ZEPHYR (1)
...
@@ -103,6 +108,7 @@ typedef long mp_off_t;
...
@@ -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_machine
;
extern
const
struct
_mp_obj_module_t
mp_module_time
;
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
;
extern
const
struct
_mp_obj_module_t
mp_module_zephyr
;
#if MICROPY_PY_UTIME
#if MICROPY_PY_UTIME
...
@@ -119,11 +125,13 @@ extern const struct _mp_obj_module_t mp_module_zephyr;
...
@@ -119,11 +125,13 @@ extern const struct _mp_obj_module_t mp_module_zephyr;
#define MICROPY_PORT_BUILTIN_MODULES \
#define MICROPY_PORT_BUILTIN_MODULES \
{ MP_OBJ_NEW_QSTR(MP_QSTR_machine), (mp_obj_t)&mp_module_machine }, \
{ 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_UTIME_DEF \
MICROPY_PY_ZEPHYR_DEF \
MICROPY_PY_ZEPHYR_DEF \
#define MICROPY_PORT_BUILTIN_MODULE_WEAK_LINKS \
#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_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
// extra built in names to add to the global namespace
#define MICROPY_PORT_BUILTINS \
#define MICROPY_PORT_BUILTINS \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment