Skip to content

Commit 22d82d6

Browse files
committed
working on being able to share the SPI Bus
1 parent 92344a8 commit 22d82d6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

micropy_updates/rp2/machine_spi.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,16 @@ typedef struct _machine_hw_spi_obj_t {
128128
machine_hw_spi_bus_obj_t rp2_machine_spi_bus_obj[] = {
129129
{
130130
0,
131-
mp_obj_new_int_from_uint(MICROPY_HW_SPI0_SCK),
132-
mp_obj_new_int_from_uint(MICROPY_HW_SPI0_MOSI),
133-
mp_obj_new_int_from_uint(MICROPY_HW_SPI0_MISO),
131+
mp_obj_new_int(MICROPY_HW_SPI0_SCK),
132+
mp_obj_new_int(MICROPY_HW_SPI0_MOSI),
133+
mp_obj_new_int(MICROPY_HW_SPI0_MISO),
134134
0, 0, (const void *)spi0
135135
},
136136
{
137137
1,
138-
mp_obj_new_int_from_uint(MICROPY_HW_SPI1_SCK),
139-
mp_obj_new_int_from_uint(MICROPY_HW_SPI1_MOSI),
140-
mp_obj_new_int_from_uint(MICROPY_HW_SPI1_MISO),
138+
mp_obj_new_int(MICROPY_HW_SPI1_SCK),
139+
mp_obj_new_int(MICROPY_HW_SPI1_MOSI),
140+
mp_obj_new_int(MICROPY_HW_SPI1_MISO),
141141
0, 0, (const void *)spi1
142142
},
143143
};

0 commit comments

Comments
 (0)