C1541-III mbed edition

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers hardware.h Source File

hardware.h

00001 #ifndef _HARDWARE_H_INCLUDED
00002 #define _HARDWARE_H_INCLUDED
00003 
00004                                                                                                                                                                                                                                                         
00005 /* IO defines */
00006 /*------------*/
00007 
00008 extern int IEC_CLOCK();
00009 extern int IEC_DATA();
00010 extern int IEC_ATN();
00011 extern void IEC_DATA_REL();
00012 extern void IEC_CLOCK_REL();
00013 extern void IEC_DATA_PULL();
00014 extern void IEC_CLOCK_PULL();
00015 
00016 /*--------------------------------------------------------*/
00017 /*                         macro's                        */
00018 /*--------------------------------------------------------*/
00019 #define            RS232            1    /*standard out = RS=232*/
00020 #define            LCD              0    /*standard out = LCD*/
00021 
00022 #define bit bool
00023 extern bit        std_out;            /*this holds the destination of the putch- and printf-routines*/
00024 
00025 
00026 
00027 #define        OutputToRS232()        std_out=RS232
00028 #define        OutputToLCD()        std_out=LCD
00029 
00030 
00031 void HardwareInit(void);
00032 void putch(unsigned char ch);
00033 #endif