summaryrefslogtreecommitdiff
path: root/floppyMusic/main.c
blob: 7583bc8a2fe34c66dc3b2048e0edaa02f6cd5d0d (plain)
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
/*
 * floppyMusic.c
 *
 * Created: 29.04.2017 16:59:57
 * Author : Jonas
 */ 

 #ifndef F_CPU
 #define F_CPU 16000000UL //CPU Running at 16MHz
 #endif

#include <avr/io.h>

#include "floppy.h"
#include "music.h"
#include "uart.h"

int main(void)
{
	uart_init(9600);
	floppy_setup(&PORTC, &DDRC, &PORTB, &DDRB);
	DDRA = 0xff;
	uart_send_string("Hallo\n");

    while (1) 
    {
		play_imperial_march();
		_delay_ms(2000);
		uart_send_string("Hallo\n");
    }
}