blob: c0db5822c3cb2365208d9eb650379c4497339222 (
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
|
/*
* 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 "uart.h"
int main(void)
{
uart_init(9600);
floppy_setup(&PORTC, &DDRC, &PORTD, &DDRD);
floppy_set_frequency(0, 4);
uart_send_string("Floppy Music\n");
while (1)
{
floppy_set_frequency(0, uart_recieve());
}
}
|