summaryrefslogtreecommitdiff
path: root/floppyMusic/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'floppyMusic/main.c')
-rw-r--r--floppyMusic/main.c14
1 files changed, 11 insertions, 3 deletions
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 <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());
}
-}
-
+} \ No newline at end of file