File tree Expand file tree Collapse file tree
ports/stm32/boards/STM32L476DISC Expand file tree Collapse file tree Original file line number Diff line number Diff 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
1414const 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};
Original file line number Diff line number Diff line change 22
33void 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}
You can’t perform that action at this time.
0 commit comments