Imported Upstream version 2.9.0
[debian/cc1111] / device / examples / startupcode / inc / cpu_c515a.h
1 /*-------------------------------------------------------------------------
2   CPU depending Declarations Header file
3
4    Written By - Dipl.-Ing. (FH) Michael Schmitt
5     Bug-Fix Oct 15 1999
6     mschmitt@mainz-online.de
7     michael.schmitt@t-online.de
8
9    This program is free software; you can redistribute it and/or modify it
10    under the terms of the GNU General Public License as published by the
11    Free Software Foundation; either version 2, or (at your option) any
12    later version.
13
14    This program is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU General Public License for more details.
18
19    You should have received a copy of the GNU General Public License
20    along with this program; if not, write to the Free Software
21    Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
23    In other words, you are welcome to use, share and improve this program.
24    You are forbidden to forbid anyone else to use, share and improve
25    what you give them.   Help stamp out software-hoarding!
26 -------------------------------------------------------------------------*/
27
28 #ifndef __FILE_CPU_C515A
29 #define __FILE_CPU_C515A
30
31 extern void CpuIdle( void );
32 void WatchDog( void );
33
34 #ifdef SERIAL_VIA_INTERRUPT
35 // Funktion nur wenn Interrupt Mode
36 extern void SERIALVIAINTERRUPT (void) interrupt SI0_VECTOR;
37 #endif
38
39 extern void putchar(  char Byte );
40 extern char getchar( void );
41 extern unsigned char keypressed( void );
42
43 #ifdef USE_SYSTEM_TIMER
44 extern void DelayMsec( unsigned long delayTime );
45 extern void timer0_isr (void) interrupt TF0_VECTOR;
46 #endif
47
48 #ifdef USE_ANALOGPORT
49 extern unsigned int ADCGetValue( char ADCPort );
50 #endif
51
52 extern void InitHardware( void );
53
54 extern volatile unsigned long SystemTicks1msec;
55
56 #endif