EDF - OnePIC MCU  Preliminary v0.7.0
8bit_IR/demo_main.h
Go to the documentation of this file.
00001 
00009 #ifndef __DEMO_MAIN_H
00010 #define __DEMO_MAIN_H
00011 
00012 
00026 typedef struct {
00027     bool IRDA_RX_FLAG;
00028     bool MCP2200_RX_FLAG;
00029     bool TOUCH_TX_FLAG;
00030 } IR_DEMO_FLAG;
00031 
00032 
00046 typedef struct {
00047     char mcp2200_rx; 
00048     char irda_rx; 
00049     char touch_tx; 
00050     char rx_tx_old_byte; 
00051 }IR_DEMO_RX;
00052 
00053 
00054 //prototypes for main program
00055 void demo_main_loop(void);
00056 void irda_demo_init(void);
00057 void irda_tx(char c);
00058 void mcp2200_tx(char c);
00059 
00060 void touch_service();
00061 void mcp2200_service();
00062 void ir_service();
00063 
00064 
00065 #endif
00066