]> git.sur5r.net Git - freertos/blob - Demo/HCS12_GCC_banked/cpu.h
Start to re-arrange files to include FreeRTOS+ in main download.
[freertos] / Demo / HCS12_GCC_banked / cpu.h
1 /** \r
2  * sci.c controls SCI for GCC/HCS12 version of FreeRTOS Demo\r
3  * To replace CodeWarrior Cpu.h\r
4  *\r
5  * Author Jefferson L Smith, Robotronics Inc.\r
6  */\r
7 \r
8 #ifndef __Cpu\r
9 #define __Cpu\r
10 \r
11 /*Types definition*/\r
12 typedef unsigned char bool;\r
13 typedef unsigned char byte;\r
14 typedef unsigned int word;\r
15 typedef unsigned long dword;\r
16 \r
17 #define ATTR_INT        __attribute__((interrupt))\r
18 #define ATTR_FAR        __attribute__((far))\r
19 #define ATTR_NEAR       __attribute__((near))\r
20 #define ATTR_BANK0      __attribute__((far,section (".bank0")))\r
21 #define ATTR_BANK1      __attribute__((far,section (".bank1")))\r
22 #define ATTR_BANK2      __attribute__((far,section (".bank2")))\r
23 #define ATTR_BANK3      __attribute__((far,section (".bank3")))\r
24 #define ATTR_BANK4      __attribute__((far,section (".bank4")))\r
25 #define ATTR_BANK5      __attribute__((far,section (".bank5")))\r
26 #define ATTR_BANK6      __attribute__((far,section (".bank6")))\r
27 #define ATTR_BANK7      __attribute__((far,section (".bank7")))\r
28 #define ATTR_BANK8      __attribute__((far,section (".bank8")))\r
29 #define ATTR_BANK9      __attribute__((far,section (".bank9")))\r
30 #define ATTR_BANK10     __attribute__((far,section (".bank10")))\r
31 #define ATTR_BANK11     __attribute__((far,section (".bank11")))\r
32 #define ATTR_BANK12     __attribute__((far,section (".bank12")))\r
33 #define ATTR_BANK13     __attribute__((far,section (".bank13")))\r
34 \r
35 #include "PE_Error.h"\r
36 #include <sys/param.h>\r
37 #include <sys/ports.h>\r
38 \r
39 #endif /* ifndef __Cpu */\r