/* ================================================================================ This program controls Asuro by received IR (InfraRed) signals. Use Hyperterminal and left/right/up/down keys to control Asuro. When arrowkeys are pressed they will send 3 charaters each time. 1. 0x1B 2. 0x5B 3. 0x41 (up), 0x42 (down), 0x43 (right), 0x44 (left) Only if all 3 characters are received the engines will drive. Each time the Asuro USART receives a character, an interrupt is executed This interrupt function (handler) handles the received character ===============================================================================// Program : Asuro 019, Build 001, Asuro controlled by hyperterminal arrow keys.c Release date : 2005-02-14 Author : Henk van Winkoop Build : 001, 2005-02-14, original release ================================================================================ */ //-------------------------------------------------------------------------------- // INCLUDES //-------------------------------------------------------------------------------- #include "hvwdefines.h" //-------------------------------------------------------------------------------- // GLOBALS //-------------------------------------------------------------------------------- unsigned char gucRcvChrCnt; //================================================================================ // DELAY MILLI SECONDS //================================================================================ void vDelayXMilliSeconds(int iDelMilSec){ //var unsigned int i,j; //handle all milli seconds for(i=0;i