2022-06-01 16:03:38 +00:00
|
|
|
#include "board.h"
|
|
|
|
#include "clock_config.h"
|
|
|
|
#include "peripherals.h"
|
|
|
|
#include "pin_mux.h"
|
|
|
|
|
2022-08-26 15:12:25 +00:00
|
|
|
/* Debug console */
|
2022-06-01 16:03:38 +00:00
|
|
|
#include "fsl_debug_console.h"
|
|
|
|
|
|
|
|
int main(void) {
|
|
|
|
BOARD_InitBootPins();
|
2022-06-03 02:05:02 +00:00
|
|
|
BOARD_InitBootClocks();
|
2022-06-01 16:03:38 +00:00
|
|
|
BOARD_InitBootPeripherals();
|
|
|
|
|
|
|
|
BOARD_InitDebugConsole();
|
|
|
|
|
2022-06-03 02:05:02 +00:00
|
|
|
CLOCK_SetMode(kCLOCK_ModeRun);
|
|
|
|
|
|
|
|
GPIO_WritePinOutput(BOARD_INITPINS_LED_R_GPIO, BOARD_INITPINS_LED_R_PIN, 0U);
|
|
|
|
GPIO_WritePinOutput(BOARD_INITPINS_LED_G_GPIO, BOARD_INITPINS_LED_G_PIN, 0U);
|
|
|
|
GPIO_WritePinOutput(BOARD_INITPINS_LED_B_GPIO, BOARD_INITPINS_LED_B_PIN, 0U);
|
|
|
|
|
2022-06-01 16:03:38 +00:00
|
|
|
for (;;) {
|
|
|
|
__WFI();
|
|
|
|
}
|
|
|
|
}
|