summaryrefslogtreecommitdiff
path: root/project/Core/Src/main.c
blob: f8709f35ba53453ec176f8b852a197664b54266e (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
27
28
// main.c with demo
// Updated and refactored Larry Kiser copyright 2021


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

#include <stdio.h>

int main(void){

	// initialization code
	System_Clock_Init(); // set System Clock = 80 MHz
	LED_Init();
	UART2_Init();
	
	int a = 1;
	int b = 2;
	printf("Hello %i %i \n\r", a, b);

	// application run function
	//	run_demo() ;
}