00001 /************************************************************************* 00002 Author: $Author: dennis $ 00003 File: $HeadURL: file:///home/dennis/svn-store/avr-source/gpib_004/defs.h $ 00004 Date: $Date: 2008-05-11 07:57:02 +0200 (So, 11 Mai 2008) $ 00005 Revision: $Revision: 65 $ 00006 Id: $Id: defs.h 65 2008-05-11 05:57:02Z dennis $ 00007 Licence: GNU General Public License 00008 00009 DESCRIPTION: 00010 standard definitions used in all .h and .c files of project 00011 *************************************************************************/ 00012 #ifndef DEFS_H_ 00013 #define DEFS_H_ 00014 00015 typedef unsigned char uchar; 00016 typedef unsigned int uint; 00017 typedef unsigned long ulong; 00018 00019 #ifndef F_CPU 00020 #error "You must define F_CPU value (cpu frequency in hz)" 00021 /*#define F_CPU 1000000*/ 00022 #endif 00023 00024 #define UART_BAUD_RATE 19200 00025 #define DI() uart_init( UART_BAUD_SELECT(UART_BAUD_RATE,F_CPU) ) 00026 00027 #endif /*DEFS_H_*/