From de57772e2027729e76482a2771d60f444a975036 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Tue, 2 May 2017 21:15:14 +0200 Subject: added UART Library --- floppyMusic/main.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'floppyMusic/main.c') diff --git a/floppyMusic/main.c b/floppyMusic/main.c index 9743636..c0db582 100644 --- a/floppyMusic/main.c +++ b/floppyMusic/main.c @@ -5,18 +5,26 @@ * Author : Jonas */ + #ifndef F_CPU + #define F_CPU 16000000UL //CPU Running at 16MHz + #endif + #include #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()); } -} - +} \ No newline at end of file -- cgit v1.2.3