EDF - OnePIC MCU  Preliminary v0.7.0
8bit_IR/demo_main.c File Reference

Main application for the IrDA demo on the 8-bit PIC16LF1939. More...

#include <htc.h>
#include <string.h>
#include <stdio.h>
#include "int.h"
#include "OnePIC_timer.h"
#include "OnePIC_lcd.h"
#include "OnePIC_led.h"
#include "OnePIC_switch.h"
#include "Compiler.h"
#include "mTouchCVD.h"
#include "TimeDelay.h"
#include "Demo_isr.h"
#include "Demo_mtouch.h"
#include "demo_main.h"
#include "mcp2200_uart.h"
#include "irda_uart.h"
Include dependency graph for demo_main.c:

Go to the source code of this file.

Functions

void demo_main_loop (void)
 IR main loop that sends and receives bytes.
void touch_service ()
 Service the TOUCH_TX_FLAG.
void mcp2200_service ()
 Service the MCP2200_RX_FLAG.
void ir_service ()
 Service the IRDA_RX_FLAG.
void irda_demo_init (void)
 Initilizes the IR link, specifically:
void irda_tx (char c)
 bit-bang a byte to the IR PICtail
void mcp2200_tx (char c)
 send a byte to the UART module back to the listening device

Variables

IR_DEMO_FLAG rx_tx_flag
IR_DEMO_RX rx_byte

Detailed Description

Main application for the IrDA demo on the 8-bit PIC16LF1939.

Definition in file demo_main.c.