@@ -70,15 +70,15 @@ typedef struct _machine_hard_spi_obj_t {
70
70
STATIC machine_hard_spi_obj_t machine_hard_spi_obj [] = {
71
71
#if defined(MICROPY_HW_SPI0_RSPCK )
72
72
{
73
- {& machine_hard_spi_type }, 0 ,
73
+ {& machine_spi_type }, 0 ,
74
74
DEFAULT_SPI_POLARITY , DEFAULT_SPI_PHASE , DEFAULT_SPI_BITS ,
75
75
DEFAULT_SPI_FIRSTBIT , DEFAULT_SPI_BAUDRATE ,
76
76
MICROPY_HW_SPI0_RSPCK , MICROPY_HW_SPI0_MOSI , MICROPY_HW_SPI0_MISO ,
77
77
},
78
78
#endif
79
79
#if defined(MICROPY_HW_SPI1_RSPCK )
80
80
{
81
- {& machine_hard_spi_type }, 1 ,
81
+ {& machine_spi_type }, 1 ,
82
82
DEFAULT_SPI_POLARITY , DEFAULT_SPI_PHASE , DEFAULT_SPI_BITS ,
83
83
DEFAULT_SPI_FIRSTBIT , DEFAULT_SPI_BAUDRATE ,
84
84
MICROPY_HW_SPI1_RSPCK , MICROPY_HW_SPI1_MOSI , MICROPY_HW_SPI1_MISO ,
@@ -298,7 +298,7 @@ STATIC const mp_machine_spi_p_t machine_hard_spi_p = {
298
298
};
299
299
300
300
MP_DEFINE_CONST_OBJ_TYPE (
301
- machine_hard_spi_type ,
301
+ machine_spi_type ,
302
302
MP_QSTR_SPI ,
303
303
MP_TYPE_FLAG_NONE ,
304
304
make_new , machine_hard_spi_make_new ,
0 commit comments