summaryrefslogtreecommitdiff
path: root/project/Core/Src/main.c
blob: 29c8f5e69e2d6f2e0ca49e2badb48f8598a014e0 (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
29
30
31
32
33
34
35
36
37
38
// 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 "activity10.h"
#include <stdio.h>
#include "hw4.h"
#include "project.h"
#include "hw8.h"
#include "activity12.h"
#include "song.h"

int main(void){

	// 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");
//	run_demo();
//	activity4_run();
//	project_run();
//	activity10_run();
//	hw6_run();
//	activity12_run();
//	activity13_run();
//	hw8_run();
	parse_song(get_song(0).p_song + 109);
}