summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-03-28 16:22:43 +1100
committerDamien George <damien.p.george@gmail.com>2018-03-28 16:29:55 +1100
commit7e28212352c390f2be78c2d020b41b88e665c09f (patch)
tree503287a3376715e626219c3f37ed2da39e43ccf1
parent2dca693c24f9bcadb1e06113848fff620d8088dd (diff)
stm32/boards/STM32L476DISC: Update to not take the address of pin objs.
-rw-r--r--ports/stm32/boards/STM32L476DISC/bdev.c8
-rw-r--r--ports/stm32/boards/STM32L476DISC/board_init.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/ports/stm32/boards/STM32L476DISC/bdev.c b/ports/stm32/boards/STM32L476DISC/bdev.c
index 0f7791033..6b353a2f9 100644
--- a/ports/stm32/boards/STM32L476DISC/bdev.c
+++ b/ports/stm32/boards/STM32L476DISC/bdev.c
@@ -6,14 +6,14 @@ const mp_soft_spi_obj_t soft_spi_bus = {
.delay_half = MICROPY_HW_SOFTSPI_MIN_DELAY,
.polarity = 0,
.phase = 0,
- .sck = &MICROPY_HW_SPIFLASH_SCK,
- .mosi = &MICROPY_HW_SPIFLASH_MOSI,
- .miso = &MICROPY_HW_SPIFLASH_MISO,
+ .sck = MICROPY_HW_SPIFLASH_SCK,
+ .mosi = MICROPY_HW_SPIFLASH_MOSI,
+ .miso = MICROPY_HW_SPIFLASH_MISO,
};
const mp_spiflash_config_t spiflash_config = {
.bus_kind = MP_SPIFLASH_BUS_SPI,
- .bus.u_spi.cs = &MICROPY_HW_SPIFLASH_CS,
+ .bus.u_spi.cs = MICROPY_HW_SPIFLASH_CS,
.bus.u_spi.data = (void*)&soft_spi_bus,
.bus.u_spi.proto = &mp_soft_spi_proto,
};
diff --git a/ports/stm32/boards/STM32L476DISC/board_init.c b/ports/stm32/boards/STM32L476DISC/board_init.c
index 30a6c309e..eb44f320f 100644
--- a/ports/stm32/boards/STM32L476DISC/board_init.c
+++ b/ports/stm32/boards/STM32L476DISC/board_init.c
@@ -2,8 +2,8 @@
void STM32L476DISC_board_early_init(void) {
// set SPI flash WP and HOLD pins high
- mp_hal_pin_output(&pin_E14);
- mp_hal_pin_output(&pin_E15);
- mp_hal_pin_write(&pin_E14, 1);
- mp_hal_pin_write(&pin_E15, 1);
+ mp_hal_pin_output(pin_E14);
+ mp_hal_pin_output(pin_E15);
+ mp_hal_pin_write(pin_E14, 1);
+ mp_hal_pin_write(pin_E15, 1);
}