diff options
| author | Dan Halbert <halbert@halwitz.org> | 2017-11-06 18:35:23 -0500 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2017-11-07 09:59:54 -0800 |
| commit | 7292984204e7ac28a5b69c23930ff7b8be003faf (patch) | |
| tree | c17417b90eb7f2cac877816aaa19a75c28b112cf /shared-bindings/busio | |
| parent | 048f0f0e4f0a3e231e9ddbc522a4a8cbe69ef8d4 (diff) | |
Implement busio.I2c.
* Added asf4_conf/samd*/hpl_sercom_config.h
* Adjusted clocks in peripheral_clk_config.h.
* Put some frozen libs back in CPX for testing.
* Implement common-hal I2C
* Add samd*_peripherals.h in parallel with samd*_pins.h for common
functions and data.
* Store SERCOM index in pins table for convenience.
* Canonicalize some #include guard names in various .h files.
simpler reset of SERCOMs; remove unused routine
Diffstat (limited to 'shared-bindings/busio')
| -rw-r--r-- | shared-bindings/busio/__init__.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/shared-bindings/busio/__init__.c b/shared-bindings/busio/__init__.c index 4686e7287..27f7898ea 100644 --- a/shared-bindings/busio/__init__.c +++ b/shared-bindings/busio/__init__.c @@ -32,9 +32,9 @@ #include "shared-bindings/microcontroller/Pin.h" #include "shared-bindings/busio/__init__.h" #include "shared-bindings/busio/I2C.h" -#include "shared-bindings/busio/OneWire.h" -#include "shared-bindings/busio/SPI.h" -#include "shared-bindings/busio/UART.h" +//xxxx #include "shared-bindings/busio/OneWire.h" +//xxxx #include "shared-bindings/busio/SPI.h" +//xxxx #include "shared-bindings/busio/UART.h" #include "shared-bindings/busio/__init__.h" #include "py/runtime.h" @@ -88,9 +88,9 @@ STATIC const mp_rom_map_elem_t busio_module_globals_table[] = { { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_busio) }, { MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&busio_i2c_type) }, - { MP_ROM_QSTR(MP_QSTR_OneWire), MP_ROM_PTR(&busio_onewire_type) }, - { MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&busio_spi_type) }, - { MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&busio_uart_type) }, + //xxxx { MP_ROM_QSTR(MP_QSTR_OneWire), MP_ROM_PTR(&busio_onewire_type) }, + //xxxx { MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&busio_spi_type) }, + //xxxx { MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&busio_uart_type) }, }; STATIC MP_DEFINE_CONST_DICT(busio_module_globals, busio_module_globals_table); |
