circuitpython/ports/stm32/boards/STM32L476DISC/board_init.c
Damien George 6b51eb22c8 stm32: Consolidate include of genhdr/pins.h to single location in pin.h.
genhdr/pins.h is an internal header file that defines all of the pin
objects and it's cleaner to have pin.h include it (where the struct's for
these objects are defined) rather than an explicit include by every user.
2018-03-27 20:25:24 +11:00

10 lines
248 B
C

#include "py/mphal.h"
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);
}