micropython/ports/stm32/boards/STM32L476DISC/board_init.c
Damien George 01dd7804b8 ports: Make new ports/ sub-directory and move all ports there.
This is to keep the top-level directory clean, to make it clear what is
core and what is a port, and to allow the repository to grow with new ports
in a sustainable way.
2017-09-06 13:40:51 +10:00

11 lines
273 B
C

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