summaryrefslogtreecommitdiff
path: root/project/Core/Src/main.c
blob: 8eca7db09597bf6cd50d84c4567e9181fe67bb60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// main.c with demo
// Updated and refactored Larry Kiser copyright 2021


// include project specific header files
#include <stdio.h>
#include "error_handler.h"
#include "SysClock.h"
#include "LED.h"
#include "UART.h"
#include "demo.h"
#include "project.h"

int main() {

	// initialization code
	System_Clock_Init(); // set System Clock = 80 MHz
	LED_Init();
	UART2_Init();
	
	// application run function
	printf("\n\n\n\n\n\n\n\n\r");

	project_run();
}