C1541-III mbed edition

Dependencies:   mbed

Revision:
0:28557a4d2215
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hardware.h	Mon Aug 22 05:48:51 2011 +0000
@@ -0,0 +1,33 @@
+#ifndef _HARDWARE_H_INCLUDED
+#define _HARDWARE_H_INCLUDED
+
+                                                                                                                                                                                                                                                        
+/* IO defines */
+/*------------*/
+
+extern int IEC_CLOCK();
+extern int IEC_DATA();
+extern int IEC_ATN();
+extern void IEC_DATA_REL();
+extern void IEC_CLOCK_REL();
+extern void IEC_DATA_PULL();
+extern void IEC_CLOCK_PULL();
+
+/*--------------------------------------------------------*/
+/*                         macro's                        */
+/*--------------------------------------------------------*/
+#define            RS232            1    /*standard out = RS=232*/
+#define            LCD              0    /*standard out = LCD*/
+
+#define bit bool
+extern bit        std_out;            /*this holds the destination of the putch- and printf-routines*/
+
+
+
+#define        OutputToRS232()        std_out=RS232
+#define        OutputToLCD()        std_out=LCD
+
+
+void HardwareInit(void);
+void putch(unsigned char ch);
+#endif