summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-06-21 08:31:26 -0500
committerJeff Epler <jepler@gmail.com>2020-06-22 10:45:27 -0500
commita580f0f1c4f2a221ddf3ff169eff79158bd8acf6 (patch)
tree98264d9b671610d7dac713911f1eac7661110a01 /py
parent5a3a0a50924e8306690769b0683f836cb9608145 (diff)
_pew: move to common-hal
I noticed that this code was referring to samd-specific functionality, and isn't enabled except in one samd board (pewpew10). Move it. There is incomplte support for _pew in mimxrt10xx which then caused build errors; adding a #if guard to check for _pew being enabled fixes it. The _pew module is not likely to be important on mimxrt but I'll leave the choice to remove it to someone else.
Diffstat (limited to 'py')
-rw-r--r--py/circuitpy_defns.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/circuitpy_defns.mk b/py/circuitpy_defns.mk
index 67fbde6e4..cdfb4c6b6 100644
--- a/py/circuitpy_defns.mk
+++ b/py/circuitpy_defns.mk
@@ -259,6 +259,8 @@ SRC_COMMON_HAL_ALL = \
_bleio/PacketBuffer.c \
_bleio/Service.c \
_bleio/UUID.c \
+ _pew/__init__.c \
+ _pew/PewPew.c \
analogio/AnalogIn.c \
analogio/AnalogOut.c \
analogio/__init__.c \
@@ -396,8 +398,6 @@ SRC_SHARED_MODULE_ALL = \
terminalio/__init__.c \
uheap/__init__.c \
ustack/__init__.c \
- _pew/__init__.c \
- _pew/PewPew.c \
_eve/__init__.c
# All possible sources are listed here, and are filtered by SRC_PATTERNS.