summaryrefslogtreecommitdiff
path: root/floppyMusic/floppy.h
diff options
context:
space:
mode:
Diffstat (limited to 'floppyMusic/floppy.h')
-rw-r--r--floppyMusic/floppy.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/floppyMusic/floppy.h b/floppyMusic/floppy.h
new file mode 100644
index 0000000..280bb2f
--- /dev/null
+++ b/floppyMusic/floppy.h
@@ -0,0 +1,30 @@
+/*
+ * floppy.h
+ *
+ * Created: 29.04.2017 17:06:28
+ * Author: Jonas
+ */
+
+
+#ifndef FLOPPY_H_
+#define FLOPPY_H_
+
+#include <avr/io.h>
+#include <avr/interrupt.h>
+#include <avr/delay.h>
+
+uint8_t timer_overflow_counter;
+uint8_t floppy_frequencies[8];
+uint8_t floppy_nextrun[8];
+uint8_t floppy_head_return_counter[8];
+
+char *fPORT, *fDDR, *dPORT, *dDDR; //Ports for floppy and Direction of Heads
+
+void floppy_setup(char *_pulse_port, char *_pulse_ddr, char *_direction_port, char *_direction_ddr);
+
+void floppy_set_frequency(uint8_t _floppy_id, uint8_t _freq);
+
+void floppy_pulse(uint8_t _floppy_id);
+
+
+#endif /* FLOPPY_H_ */ \ No newline at end of file