Main Page | File List | Globals

stationu.h

Go to the documentation of this file.
00001 //
00002 // C Interface: stationu
00003 //
00004 // Description: 
00005 //
00006 //
00007 // Author: Leonhard Klein <leoklein@gmx.net>, (C) 2004
00008 
00009 #ifndef __STATIONU_H__
00010 #define __STATIONU_H__
00011 
00012 #include <avr/io.h>
00013 #include <avr/interrupt.h>
00014 #include <avr/signal.h>
00015 #include <avr/pgmspace.h>
00016 #include "basic.h"
00017 #include "ir.h"
00018 
00019 #define F_CPU            4000000      /* 4Mhz */
00020 #define UART_BAUD_RATE   19200        /* 9600 baud */
00021 #define UART_BAUD_SELECT (F_CPU/(UART_BAUD_RATE*16l)-1)
00022 #define TS PORTB ^=_BV(PB0);
00023 
00024 
00025 extern volatile u08 lastkey;
00026 
00027 
00028 volatile u16 vcc_value, vout_value;
00029 u08 *str1;
00030 u08 loadcur;
00031 
00032 
00033 #define DO_PING PORTB ^= _BV(PB4);
00034 #define STOP_PING PORTB &= ~_BV(PB4);
00035 #define CLRSCR uart_send("\033[2J\0")
00036 
00037 #define RLEDON PORTD |= _BV(PD7)
00038 #define RLEDOFF PORTD &= ~_BV(PD7)
00039 #define GLEDON PORTB |= _BV(PB0)
00040 #define GLEDOFF PORTB &= ~_BV(PB0)
00041 #define SW6 (PINC & _BV(PC3))
00042 #define SW7 (PINC & _BV(PC4))
00043 
00044 extern void SIG_UART_RECV (void);
00045 extern void uart_send(u08 *buf);
00046 extern void uart_send_pascal(u08 *buf);
00047 extern void uart_send_char(u08 val);
00048 extern void uart_send_int(s16 int1, u08 radix);
00049 extern void uart_send_p(u08 buf[]);              
00050 extern void initchip();
00051 extern void start_ad(enum admodtype adm);
00052 extern void SIG_ADC (void);
00053 
00054 extern void itoa16(u08 val, u08 *buf);
00055 
00056 #endif

Generated on Wed Feb 2 21:19:12 2005 for Station by doxygen 1.3.6