Skip to content

Commit 7e28212

Browse files
committed
stm32/boards/STM32L476DISC: Update to not take the address of pin objs.
1 parent 2dca693 commit 7e28212

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

ports/stm32/boards/STM32L476DISC/bdev.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ const mp_soft_spi_obj_t soft_spi_bus = {
66
.delay_half = MICROPY_HW_SOFTSPI_MIN_DELAY,
77
.polarity = 0,
88
.phase = 0,
9-
.sck = &MICROPY_HW_SPIFLASH_SCK,
10-
.mosi = &MICROPY_HW_SPIFLASH_MOSI,
11-
.miso = &MICROPY_HW_SPIFLASH_MISO,
9+
.sck = MICROPY_HW_SPIFLASH_SCK,
10+
.mosi = MICROPY_HW_SPIFLASH_MOSI,
11+
.miso = MICROPY_HW_SPIFLASH_MISO,
1212
};
1313

1414
const mp_spiflash_config_t spiflash_config = {
1515
.bus_kind = MP_SPIFLASH_BUS_SPI,
16-
.bus.u_spi.cs = &MICROPY_HW_SPIFLASH_CS,
16+
.bus.u_spi.cs = MICROPY_HW_SPIFLASH_CS,
1717
.bus.u_spi.data = (void*)&soft_spi_bus,
1818
.bus.u_spi.proto = &mp_soft_spi_proto,
1919
};

ports/stm32/boards/STM32L476DISC/board_init.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
void STM32L476DISC_board_early_init(void) {
44
// set SPI flash WP and HOLD pins high
5-
mp_hal_pin_output(&pin_E14);
6-
mp_hal_pin_output(&pin_E15);
7-
mp_hal_pin_write(&pin_E14, 1);
8-
mp_hal_pin_write(&pin_E15, 1);
5+
mp_hal_pin_output(pin_E14);
6+
mp_hal_pin_output(pin_E15);
7+
mp_hal_pin_write(pin_E14, 1);
8+
mp_hal_pin_write(pin_E15, 1);
99
}

0 commit comments

Comments
 (0)