summaryrefslogtreecommitdiff
path: root/esp8266/Makefile
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-06-16 13:47:01 -0700
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-06-16 13:47:01 -0700
commitc7efd2cae963b4db7e8b589cf20207ef7639b303 (patch)
tree3a9c96fb277260101f3cffb098b03c6cc9633297 /esp8266/Makefile
parent58ab5844cb66a46b61526bf5f0cd95ba50e117a0 (diff)
shared-bindings: Move enum-like classes out of DigitalInOut into digitalio.
Also, rename Direction.IN to Direction.INPUT and Direction.OUT to Direction.OUTPUT. This simplifies using them. Prior to the nativeio split this would have led to clutter in the top-level namespace but having digitalio prevents this. Fixes #152
Diffstat (limited to 'esp8266/Makefile')
-rw-r--r--esp8266/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/esp8266/Makefile b/esp8266/Makefile
index 00370a519..90392cd49 100644
--- a/esp8266/Makefile
+++ b/esp8266/Makefile
@@ -125,9 +125,16 @@ SRC_COMMON_HAL = \
time/__init__.c \
board/__init__.c
+# These don't have corresponding files in each port but are still located in
+# shared-bindings to make it clear what the contents of the modules are.
+SRC_BINDINGS_ENUMS = \
+ digitalio/Direction.c \
+ digitalio/DriveMode.c \
+ digitalio/Pull.c
+
SRC_COMMON_HAL_EXPANDED = $(addprefix shared-bindings/, $(SRC_COMMON_HAL)) \
+ $(addprefix shared-bindings/, $(SRC_BINDINGS_ENUMS)) \
$(addprefix common-hal/, $(SRC_COMMON_HAL))
-
SRC_SHARED_MODULE = \
bitbangio/__init__.c \
bitbangio/I2C.c \