diff options
| author | Radomir Dopieralski <openstack@sheep.art.pl> | 2018-08-01 15:29:26 +0200 |
|---|---|---|
| committer | Radomir Dopieralski <openstack@sheep.art.pl> | 2019-02-28 23:32:58 +0100 |
| commit | 88e40193ae92a390ff0cc8872ec2b7cd953c83cb (patch) | |
| tree | 0a7f42c35e635b53c373bf43dd469149704eaea9 /py | |
| parent | 7ac11ed8e1da94c5408842cffd98a7265327f0df (diff) | |
Add a _pew module
Diffstat (limited to 'py')
| -rw-r--r-- | py/circuitpy_defns.mk | 3 | ||||
| -rw-r--r-- | py/circuitpy_mpconfig.h | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/py/circuitpy_defns.mk b/py/circuitpy_defns.mk index 2fa2e78e2..080263487 100644 --- a/py/circuitpy_defns.mk +++ b/py/circuitpy_defns.mk @@ -198,6 +198,9 @@ endif ifeq ($(CIRCUITPY_USTACK),1) SRC_PATTERNS += ustack/% endif +ifeq ($(CIRCUITPY_PEW),1) +SRC_PATTERNS += _pew/% +endif # All possible sources are listed here, and are filtered by SRC_PATTERNS. SRC_COMMON_HAL = \ diff --git a/py/circuitpy_mpconfig.h b/py/circuitpy_mpconfig.h index 6f9705485..c20c0fb66 100644 --- a/py/circuitpy_mpconfig.h +++ b/py/circuitpy_mpconfig.h @@ -463,6 +463,13 @@ extern const struct _mp_obj_module_t ustack_module; #define USTACK_MODULE #endif +#if CIRCUITPY_PEW +extern const struct _mp_obj_module_t pew_module; +#define PEW_MODULE { MP_OBJ_NEW_QSTR(MP_QSTR__pew),(mp_obj_t)&pew_module }, +#else +#define PEW_MODULE +#endif + // These modules are not yet in shared-bindings, but we prefer the non-uxxx names. #if MICROPY_PY_UERRNO #define ERRNO_MODULE { MP_ROM_QSTR(MP_QSTR_errno), MP_ROM_PTR(&mp_module_uerrno) }, |
