2023-03-10 01:43:53 +00:00
|
|
|
/* Board */
|
2023-03-09 14:51:36 +00:00
|
|
|
#include "board.h"
|
|
|
|
#include "clock_config.h"
|
|
|
|
#include "peripherals.h"
|
|
|
|
#include "pin_mux.h"
|
|
|
|
|
2023-03-10 01:43:53 +00:00
|
|
|
/* LittleFS */
|
|
|
|
#include "lfs.h"
|
|
|
|
|
|
|
|
/* App */
|
|
|
|
#include "app_lspi_flash.h"
|
2023-03-09 14:51:36 +00:00
|
|
|
|
|
|
|
int main(void) {
|
|
|
|
BOARD_InitBootPins();
|
2023-03-10 01:43:53 +00:00
|
|
|
BOARD_InitBootClocks();
|
2023-03-09 14:51:36 +00:00
|
|
|
BOARD_InitBootPeripherals();
|
|
|
|
|
2023-03-10 01:43:53 +00:00
|
|
|
if(app_lspi_flash_init() != 0) {
|
|
|
|
for(;;) {
|
|
|
|
/* -- */
|
|
|
|
}
|
|
|
|
}
|
2023-03-09 14:51:36 +00:00
|
|
|
|
2023-03-10 01:43:53 +00:00
|
|
|
for (;;) {
|
2023-03-09 14:51:36 +00:00
|
|
|
__WFI();
|
|
|
|
}
|
|
|
|
}
|