/* Copyright (C) 2006 Marcin Slonicki . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ----------------------------------------------------------------------- this file is a part of the TOYOTA Corolla MP3 Player Project ----------------------------------------------------------------------- http://www.softservice.com.pl/corolla/avc May 28 / 2009 - version 2 */ #ifndef __COM232_H #define __COM232_H //------------------------------------------------------------------------------ #include "GlobalDef.h" //------------------------------------------------------------------------------ extern byte RS232_RxCharBuffer[25], RS232_RxCharBegin, RS232_RxCharEnd; extern byte readkey; //------------------------------------------------------------------------------ void RS232_Init(void); extern void RS232_Print_P(const char * str_addr); extern void RS232_SendByte(byte Data); extern void RS232_Print(const char *pBuf); extern void RS232_PrintHex4(byte Data); extern void RS232_PrintHex8(byte Data); extern void RS232_PrintDec(byte Data); extern void RS232_PrintDec2(byte Data); extern char* itoa(int i, char b[]); //------------------------------------------------------------------------------ // LED #define LED_ON() cbi(PORTB, 5) #define LED_OFF() sbi(PORTB, 5) //------------------------------------------------------------------------------ #endif