25 lines
431 B
C
25 lines
431 B
C
#include <stdio.h>
|
|
|
|
/* Board */
|
|
#include "board.h"
|
|
#include "clock_config.h"
|
|
#include "peripherals.h"
|
|
#include "pin_mux.h"
|
|
|
|
int main(void) {
|
|
HAL_Init();
|
|
|
|
BOARD_ConfigMPU();
|
|
BOARD_EnableCaches();
|
|
|
|
BOARD_InitBootClocks();
|
|
BOARD_InitBootPins();
|
|
BOARD_InitBootPeripherals();
|
|
|
|
printf("Hello world!\r\n");
|
|
|
|
for (;;) {
|
|
HAL_Delay(500);
|
|
HAL_GPIO_TogglePin(LED_G_GPIO_Port, LED_G_Pin);
|
|
}
|
|
} |