generated from Embedded_Projects/Fire_RT1052_Pro_Template
25 lines
444 B
C
25 lines
444 B
C
#include "board.h"
|
|
#include "clock_config.h"
|
|
#include "peripherals.h"
|
|
#include "pin_mux.h"
|
|
|
|
/* Debug console */
|
|
#include "fsl_debug_console.h"
|
|
|
|
int main(void) {
|
|
BOARD_InitBootPins();
|
|
BOARD_InitBootClocks();
|
|
BOARD_InitBootPeripherals();
|
|
BOARD_ConfigMPU();
|
|
|
|
BOARD_InitDebugConsole();
|
|
|
|
CLOCK_SetMode(kCLOCK_ModeRun);
|
|
|
|
PRINTF("CPU frequency: %d\r\n", CLOCK_GetCoreSysClkFreq());
|
|
|
|
for (;;) {
|
|
__WFI();
|
|
}
|
|
}
|