diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-04-12 15:24:50 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-04-12 15:24:50 -0700 |
| commit | 4a4f29b8f95aa67f63397ae4efe78c6994398ccf (patch) | |
| tree | 8ff1fc64edcfca06e5dc6d79a84c259197046cd3 /shared-module | |
| parent | 8505de1ced9e567867f2530cee241b28f3456b60 (diff) | |
atmel-samd: Rework status LED implementation
* Track status pin use by user code separately so it can take over the pins and then give them back.
* Switch to hardware SPI for APA102 on Gemma and Trinket.
* Merge microcontroller/types.h into microcontroller/Pin.h to better match approach going forwards.
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/bitbangio/I2C.c | 2 | ||||
| -rw-r--r-- | shared-module/bitbangio/OneWire.c | 2 | ||||
| -rw-r--r-- | shared-module/bitbangio/SPI.c | 2 | ||||
| -rw-r--r-- | shared-module/busio/OneWire.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/shared-module/bitbangio/I2C.c b/shared-module/bitbangio/I2C.c index 4c47629c7..0f017fc18 100644 --- a/shared-module/bitbangio/I2C.c +++ b/shared-module/bitbangio/I2C.c @@ -29,7 +29,7 @@ #include "py/mperrno.h" #include "py/obj.h" -#include "common-hal/microcontroller/types.h" +#include "common-hal/microcontroller/Pin.h" #include "shared-bindings/microcontroller/__init__.h" #include "shared-bindings/digitalio/DigitalInOut.h" #include "shared-module/bitbangio/types.h" diff --git a/shared-module/bitbangio/OneWire.c b/shared-module/bitbangio/OneWire.c index b78acc8ec..46c0c406c 100644 --- a/shared-module/bitbangio/OneWire.c +++ b/shared-module/bitbangio/OneWire.c @@ -24,7 +24,7 @@ * THE SOFTWARE. */ -#include "common-hal/microcontroller/types.h" +#include "common-hal/microcontroller/Pin.h" #include "shared-bindings/bitbangio/OneWire.h" #include "shared-bindings/microcontroller/__init__.h" #include "shared-bindings/digitalio/DigitalInOut.h" diff --git a/shared-module/bitbangio/SPI.c b/shared-module/bitbangio/SPI.c index be0deda8f..a3c70dde9 100644 --- a/shared-module/bitbangio/SPI.c +++ b/shared-module/bitbangio/SPI.c @@ -29,7 +29,7 @@ #include "py/nlr.h" #include "py/obj.h" -#include "common-hal/microcontroller/types.h" +#include "common-hal/microcontroller/Pin.h" #include "shared-bindings/microcontroller/__init__.h" #include "shared-bindings/digitalio/DigitalInOut.h" #include "shared-module/bitbangio/types.h" diff --git a/shared-module/busio/OneWire.c b/shared-module/busio/OneWire.c index 0e3c2c384..73d3d29d7 100644 --- a/shared-module/busio/OneWire.c +++ b/shared-module/busio/OneWire.c @@ -25,7 +25,7 @@ */ // Wraps the bitbangio implementation of OneWire for use in busio. -#include "common-hal/microcontroller/types.h" +#include "common-hal/microcontroller/Pin.h" #include "shared-bindings/bitbangio/OneWire.h" #include "shared-module/busio/OneWire.h" |
