Fix busdevice stub path

This commit is contained in:
Michael Himing 2021-12-28 19:31:40 +11:00
parent ea638c0401
commit fe71ee0812
10 changed files with 12 additions and 12 deletions

View File

@ -524,8 +524,8 @@ SRC_SHARED_MODULE_ALL = \
bitops/__init__.c \ bitops/__init__.c \
board/__init__.c \ board/__init__.c \
adafruit_bus_device/__init__.c \ adafruit_bus_device/__init__.c \
adafruit_bus_device/I2CDevice.c \ adafruit_bus_device/i2c_device/I2CDevice.c \
adafruit_bus_device/SPIDevice.c \ adafruit_bus_device/spi_device/SPIDevice.c \
canio/Match.c \ canio/Match.c \
canio/Message.c \ canio/Message.c \
canio/RemoteTransmissionRequest.c \ canio/RemoteTransmissionRequest.c \

View File

@ -32,8 +32,8 @@
#include "py/objproperty.h" #include "py/objproperty.h"
#include "shared-bindings/adafruit_bus_device/__init__.h" #include "shared-bindings/adafruit_bus_device/__init__.h"
#include "shared-bindings/adafruit_bus_device/I2CDevice.h" #include "shared-bindings/adafruit_bus_device/i2c_device/I2CDevice.h"
#include "shared-bindings/adafruit_bus_device/SPIDevice.h" #include "shared-bindings/adafruit_bus_device/spi_device/SPIDevice.h"
STATIC const mp_rom_map_elem_t adafruit_bus_device_i2c_device_globals_table[] = { STATIC const mp_rom_map_elem_t adafruit_bus_device_i2c_device_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_i2c_device) }, { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_i2c_device) },

View File

@ -28,9 +28,9 @@
// busio.I2C class. // busio.I2C class.
#include "shared-bindings/microcontroller/Pin.h" #include "shared-bindings/microcontroller/Pin.h"
#include "shared-bindings/adafruit_bus_device/I2CDevice.h" #include "shared-bindings/adafruit_bus_device/i2c_device/I2CDevice.h"
#include "shared-bindings/util.h" #include "shared-bindings/util.h"
#include "shared-module/adafruit_bus_device/I2CDevice.h" #include "shared-module/adafruit_bus_device/i2c_device/I2CDevice.h"
#include "shared/runtime/buffer_helper.h" #include "shared/runtime/buffer_helper.h"
#include "shared/runtime/context_manager_helpers.h" #include "shared/runtime/context_manager_helpers.h"

View File

@ -36,7 +36,7 @@
#include "py/obj.h" #include "py/obj.h"
#include "shared-module/adafruit_bus_device/I2CDevice.h" #include "shared-module/adafruit_bus_device/i2c_device/I2CDevice.h"
// #include "shared-bindings/busio/I2C.h" // #include "shared-bindings/busio/I2C.h"
// Type object used in Python. Should be shared between ports. // Type object used in Python. Should be shared between ports.

View File

@ -25,9 +25,9 @@
*/ */
#include "shared-bindings/microcontroller/Pin.h" #include "shared-bindings/microcontroller/Pin.h"
#include "shared-bindings/adafruit_bus_device/SPIDevice.h" #include "shared-bindings/adafruit_bus_device/spi_device/SPIDevice.h"
#include "shared-bindings/util.h" #include "shared-bindings/util.h"
#include "shared-module/adafruit_bus_device/SPIDevice.h" #include "shared-module/adafruit_bus_device/spi_device/SPIDevice.h"
#include "common-hal/digitalio/DigitalInOut.h" #include "common-hal/digitalio/DigitalInOut.h"
#include "shared-bindings/digitalio/DigitalInOut.h" #include "shared-bindings/digitalio/DigitalInOut.h"

View File

@ -36,7 +36,7 @@
#include "py/obj.h" #include "py/obj.h"
#include "shared-module/adafruit_bus_device/SPIDevice.h" #include "shared-module/adafruit_bus_device/spi_device/SPIDevice.h"
// Type object used in Python. Should be shared between ports. // Type object used in Python. Should be shared between ports.
extern const mp_obj_type_t adafruit_bus_device_spidevice_type; extern const mp_obj_type_t adafruit_bus_device_spidevice_type;

View File

@ -24,7 +24,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "shared-bindings/adafruit_bus_device/I2CDevice.h" #include "shared-bindings/adafruit_bus_device/i2c_device/I2CDevice.h"
#include "shared-bindings/busio/I2C.h" #include "shared-bindings/busio/I2C.h"
#include "py/mperrno.h" #include "py/mperrno.h"
#include "py/nlr.h" #include "py/nlr.h"

View File

@ -24,7 +24,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "shared-bindings/adafruit_bus_device/SPIDevice.h" #include "shared-bindings/adafruit_bus_device/spi_device/SPIDevice.h"
#include "shared-bindings/busio/SPI.h" #include "shared-bindings/busio/SPI.h"
#include "shared-bindings/digitalio/DigitalInOut.h" #include "shared-bindings/digitalio/DigitalInOut.h"
#include "py/mperrno.h" #include "py/mperrno.h"