diff options
| author | iabdalkader <i.abdalkader@gmail.com> | 2022-10-06 19:48:07 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-10-22 12:54:42 +1100 |
| commit | af4ba6d1b4558e0ce1c81b8acd975f0bcbe83072 (patch) | |
| tree | 59db3b5a9affe1434b6c4a3207166b746bf67c2d /ports/stm32/spi.c | |
| parent | 965a87b53cd9da32a546b03cdd01042058080498 (diff) | |
stm32: Rename machine I2C and SPI types consistently across ports.
This renames:
- machine_hard_i2c_type -> machine_i2c_type
- machine_hard_spi_type -> machine_spi_type
Diffstat (limited to 'ports/stm32/spi.c')
| -rw-r--r-- | ports/stm32/spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/stm32/spi.c b/ports/stm32/spi.c index 9c031cad2..e21ebcd02 100644 --- a/ports/stm32/spi.c +++ b/ports/stm32/spi.c @@ -678,7 +678,7 @@ const spi_t *spi_from_mp_obj(mp_obj_t o) { if (mp_obj_is_type(o, &pyb_spi_type)) { pyb_spi_obj_t *self = MP_OBJ_TO_PTR(o); return self->spi; - } else if (mp_obj_is_type(o, &machine_hard_spi_type)) { + } else if (mp_obj_is_type(o, &machine_spi_type)) { machine_hard_spi_obj_t *self = MP_OBJ_TO_PTR(o); return self->spi; } else { @@ -687,7 +687,7 @@ const spi_t *spi_from_mp_obj(mp_obj_t o) { } mp_obj_base_t *mp_hal_get_spi_obj(mp_obj_t o) { - if (mp_obj_is_type(o, &machine_hard_spi_type)) { + if (mp_obj_is_type(o, &machine_spi_type)) { return MP_OBJ_TO_PTR(o); } #if MICROPY_PY_MACHINE_SOFTSPI |
