From 677c370834102ae43ce19d0931cc98d8267dacc5 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 1 May 2017 12:02:08 +0200 Subject: init --- floppyMusic/floppy.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 floppyMusic/floppy.h (limited to 'floppyMusic/floppy.h') 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 +#include +#include + +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 -- cgit v1.2.3