File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
ports/cxd56/common-hal/busio Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 27
27
#include <arch/chip/pin.h>
28
28
#include <nuttx/i2c/i2c_master.h>
29
29
#include <cxd56_i2c.h>
30
+ #include <cxd56_pinconfig.h>
30
31
31
32
#include "py/runtime.h"
32
33
@@ -49,6 +50,7 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self, const mcu_pin_obj_t *
49
50
self -> sda_pin = sda ;
50
51
self -> frequency = frequency ;
51
52
self -> i2c_dev = cxd56_i2cbus_initialize (0 );
53
+ CXD56_PIN_CONFIGS (PINCONFS_I2C0 );
52
54
}
53
55
54
56
void common_hal_busio_i2c_deinit (busio_i2c_obj_t * self ) {
Original file line number Diff line number Diff line change 26
26
27
27
#include <arch/chip/pin.h>
28
28
#include <cxd56_spi.h>
29
+ #include <cxd56_pinconfig.h>
29
30
30
31
#include "py/runtime.h"
31
32
@@ -39,10 +40,12 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self, const mcu_pin_obj_t *
39
40
(mosi == NULL || mosi -> number == PIN_SPI4_MOSI ) &&
40
41
(miso == NULL || miso -> number == PIN_SPI4_MISO )) {
41
42
port = 4 ;
43
+ CXD56_PIN_CONFIGS (PINCONFS_SPI4 );
42
44
} else if (clock -> number == PIN_EMMC_CLK &&
43
45
(mosi == NULL || mosi -> number == PIN_EMMC_DATA0 ) &&
44
46
(miso == NULL || miso -> number == PIN_EMMC_DATA1 )) {
45
47
port = 5 ;
48
+ CXD56_PIN_CONFIGS (PINCONFS_EMMCA_SPI5 );
46
49
}
47
50
48
51
if (port < 0 ) {
You can’t perform that action at this time.
0 commit comments