]> git.sur5r.net Git - freertos/blob - Demo/HCS12_GCC_banked/sys/ports.h
Start to re-arrange files to include FreeRTOS+ in main download.
[freertos] / Demo / HCS12_GCC_banked / sys / ports.h
1 /* sys/ports.h -- Definition of system ports\r
2    Copyright 2000, 2001, 2002 Free Software Foundation, Inc.\r
3    Written by Stephane Carrez (stcarrez@worldnet.fr)\r
4 \r
5 This file is part of GEL.\r
6 \r
7 GEL is free software; you can redistribute it and/or modify\r
8 it under the terms of the GNU General Public License** as published by\r
9 the Free Software Foundation; either version 2, or (at your option)\r
10 any later version.\r
11 \r
12 GEL is distributed in the hope that it will be useful,\r
13 but WITHOUT ANY WARRANTY; without even the implied warranty of\r
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
15 GNU General Public License for more details.\r
16 \r
17 You should have received a copy of the GNU General Public License\r
18 along with GEL; see the file COPYING.  If not, write to\r
19 the Free Software Foundation, 59 Temple Place - Suite 330,\r
20 Boston, MA 02111-1307, USA.  */\r
21 \r
22 #ifndef _SYS_PORTS_H\r
23 #define _SYS_PORTS_H\r
24 \r
25 #ifdef __cplusplus\r
26 extern "C" {\r
27 #endif\r
28 \r
29   extern unsigned short get_timer_counter (void);\r
30   extern void set_timer_counter (unsigned short);\r
31   extern unsigned short get_input_capture_1 (void);\r
32   extern void set_input_capture_1 (unsigned short);\r
33   extern unsigned short get_input_capture_2 (void);\r
34   extern void set_input_capture_2 (unsigned short);\r
35   extern unsigned short get_input_capture_3 (void);\r
36   extern void set_input_capture_3 (unsigned short);\r
37   extern unsigned short get_output_compare_1 (void);\r
38   extern void set_output_compare_1 (unsigned short);\r
39   extern unsigned short get_output_compare_2 (void);\r
40   extern void set_output_compare_2 (unsigned short);\r
41   extern unsigned short get_output_compare_3 (void);\r
42   extern void set_output_compare_3 (unsigned short);\r
43   extern unsigned short get_output_compare_4 (void);\r
44   extern void set_output_compare_4 (unsigned short);\r
45   extern unsigned short get_output_compare_5 (void);\r
46   extern void set_output_compare_5 (unsigned short);\r
47   extern void set_bus_expanded (void);\r
48   extern void set_bus_single_chip (void);\r
49   extern void cop_reset (void);\r
50   extern void cop_optional_reset (void);\r
51   extern void timer_acknowledge (void);\r
52   extern void timer_initialize_rate (unsigned char);\r
53   \r
54 #ifdef mc6811\r
55 //# include <asm-m68hc11/ports.h>\r
56 #endif\r
57 \r
58 #ifdef mc68hcs12\r
59 # include <asm-m68hcs12/ports.h>\r
60 #elif defined(mc6812)\r
61 //# include <asm-m68hc12/ports.h>\r
62 #endif\r
63 \r
64 #ifdef __cplusplus\r
65 };\r
66 #endif\r
67   \r
68 #endif /* _SYS_PORTS_H */\r
69 \r