aboutsummaryrefslogtreecommitdiff
path: root/atmel-samd/Makefile
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-04-10 13:32:19 -0700
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-04-10 13:32:19 -0700
commitf28f8ba56809fd56e777eabceae21127f95b89ed (patch)
tree02c2172f588d960d8bf61b62a6034a2c2b7c85de /atmel-samd/Makefile
parent4810722064e9ce68b7ab9d3fb02afe6dffdf95e8 (diff)
Split up nativeio.0.9.4
This was done to allow greatly granularity when deciding what functionality is built into each board's build. For example, this way pulseio can be omitted to allow for something else such as touchio.
Diffstat (limited to 'atmel-samd/Makefile')
-rw-r--r--atmel-samd/Makefile41
1 files changed, 21 insertions, 20 deletions
diff --git a/atmel-samd/Makefile b/atmel-samd/Makefile
index fb950a440..792e93081 100644
--- a/atmel-samd/Makefile
+++ b/atmel-samd/Makefile
@@ -221,41 +221,42 @@ SRC_BINDINGS = \
board/__init__.c \
microcontroller/__init__.c \
microcontroller/Pin.c \
- nativeio/__init__.c \
- nativeio/AnalogIn.c \
- nativeio/AnalogOut.c \
- nativeio/DigitalInOut.c \
- nativeio/I2C.c \
- nativeio/PulseIn.c \
- nativeio/PulseOut.c \
- nativeio/PWMOut.c \
- nativeio/SPI.c \
- nativeio/UART.c \
+ analogio/__init__.c \
+ analogio/AnalogIn.c \
+ analogio/AnalogOut.c \
+ digitalio/__init__.c \
+ digitalio/DigitalInOut.c \
+ pulseio/__init__.c \
+ pulseio/PulseIn.c \
+ pulseio/PulseOut.c \
+ pulseio/PWMOut.c \
+ busio/__init__.c \
+ busio/I2C.c \
+ busio/SPI.c \
+ busio/UART.c \
neopixel_write/__init__.c \
time/__init__.c \
usb_hid/__init__.c \
usb_hid/Device.c
-SRC_BINDINGS_EXPANDED = $(addprefix shared-bindings/, $(SRC_BINDINGS)) \
- $(addprefix common-hal/, $(SRC_BINDINGS))
-
# Handle touch support on its own since it only fits in the image when external
# flash is used to store the file system.
-SRC_BINDINGS_EXPANDED += shared-bindings/nativeio/TouchIn.c
-
-ifeq ($(FLASH_IMPL),internal_flash.c)
-SRC_BINDINGS_EXPANDED += common-hal/nativeio/TouchInStub.c
-else
-SRC_BINDINGS_EXPANDED += common-hal/nativeio/TouchIn.c
+# TODO(tannewt): Remove this after we switch to freetouch and rely on the linker
+# to drop classes we don't need.
+ifneq ($(FLASH_IMPL),internal_flash.c)
+SRC_BINDINGS += touchio/__init__.c touchio/TouchIn.c
endif
+SRC_BINDINGS_EXPANDED = $(addprefix shared-bindings/, $(SRC_BINDINGS)) \
+ $(addprefix common-hal/, $(SRC_BINDINGS))
+
SRC_SHARED_MODULE = \
help.c \
bitbangio/__init__.c \
bitbangio/I2C.c \
bitbangio/OneWire.c \
bitbangio/SPI.c \
- nativeio/OneWire.c \
+ busio/OneWire.c \
uheap/__init__.c \
SRC_SHARED_MODULE_EXPANDED = $(addprefix shared-bindings/, $(SRC_SHARED_MODULE)) \