Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
85cad502
Commit
85cad502
authored
Jul 23, 2020
by
Glenn Ruben Bakke
Committed by
Damien George
Aug 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nrf/mpconfigport.h: Expose nrf module when MICROPY_PY_NRF is set.
parent
5a873e27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
ports/nrf/mpconfigport.h
ports/nrf/mpconfigport.h
+13
-0
No files found.
ports/nrf/mpconfigport.h
View file @
85cad502
...
...
@@ -179,6 +179,10 @@
#define MICROPY_PY_TIME_TICKS (1)
#endif
#ifndef MICROPY_PY_NRF
#define MICROPY_PY_NRF (0)
#endif
#define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF (1)
#define MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE (0)
...
...
@@ -212,11 +216,18 @@ typedef long mp_off_t;
// extra built in modules to add to the list of known ones
extern
const
struct
_mp_obj_module_t
board_module
;
extern
const
struct
_mp_obj_module_t
machine_module
;
extern
const
struct
_mp_obj_module_t
nrf_module
;
extern
const
struct
_mp_obj_module_t
mp_module_utime
;
extern
const
struct
_mp_obj_module_t
mp_module_uos
;
extern
const
struct
_mp_obj_module_t
mp_module_ubluepy
;
extern
const
struct
_mp_obj_module_t
music_module
;
#if MICROPY_PY_NRF
#define NRF_MODULE { MP_ROM_QSTR(MP_QSTR_nrf), MP_ROM_PTR(&nrf_module) },
#else
#define NRF_MODULE
#endif
#if MICROPY_PY_UBLUEPY
#define UBLUEPY_MODULE { MP_ROM_QSTR(MP_QSTR_ubluepy), MP_ROM_PTR(&mp_module_ubluepy) },
#else
...
...
@@ -255,6 +266,7 @@ extern const struct _mp_obj_module_t ble_module;
MUSIC_MODULE \
UBLUEPY_MODULE \
MICROPY_BOARD_BUILTINS \
NRF_MODULE \
#else
...
...
@@ -266,6 +278,7 @@ extern const struct _mp_obj_module_t ble_module;
{ MP_ROM_QSTR(MP_QSTR_uos), MP_ROM_PTR(&mp_module_uos) }, \
MUSIC_MODULE \
MICROPY_BOARD_BUILTINS \
NRF_MODULE \
#endif // BLUETOOTH_SD
...
...
Write
Preview
Markdown
is supported
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