blob: 297b58aab92f9eaa0e549ea98a2cf8714ec36ad5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include "py/mphal.h"
void board_early_init(void) {
#if !MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE
// set external SPI flash CS pin high
mp_hal_pin_output(MICROPY_HW_SPIFLASH_CS);
mp_hal_pin_write(MICROPY_HW_SPIFLASH_CS, 1);
#endif
}
|