]> git.sur5r.net Git - freertos/blob - Demo/HCS12_CodeWarrior_small/CODE/PE_Types.H
Start to re-arrange files to include FreeRTOS+ in main download.
[freertos] / Demo / HCS12_CodeWarrior_small / CODE / PE_Types.H
1 /** ###################################################################\r
2 **     THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.\r
3 **     Filename  : PE_Types.H\r
4 **     Project   : RTOSDemo\r
5 **     Processor : MC9S12C32CFU\r
6 **     Beantype  : PE_Types\r
7 **     Version   : Driver 01.04\r
8 **     Compiler  : Metrowerks HC12 C Compiler\r
9 **     Date/Time : 10/05/2005, 11:11\r
10 **     Abstract  :\r
11 **         This bean "PE_Types" contains internal definitions\r
12 **         of the types.\r
13 **     Settings  :\r
14 **     Contents  :\r
15 **         No public methods\r
16 **\r
17 **     (c) Copyright UNIS, spol. s r.o. 1997-2002\r
18 **     UNIS, spol. s r.o.\r
19 **     Jundrovska 33\r
20 **     624 00 Brno\r
21 **     Czech Republic\r
22 **     http      : www.processorexpert.com\r
23 **     mail      : info@processorexpert.com\r
24 ** ###################################################################*/\r
25 \r
26 #ifndef __PE_Types_H\r
27 #define __PE_Types_H\r
28 \r
29 #define  FALSE  0\r
30 #define  TRUE   1\r
31 \r
32 /*Types definition*/\r
33 typedef unsigned char bool;\r
34 typedef unsigned char byte;\r
35 typedef unsigned int word;\r
36 typedef unsigned long dword;\r
37 typedef unsigned long dlong[2];\r
38 typedef void (*tIntFunc)(void);\r
39 \r
40 /* Motorola types */\r
41 typedef unsigned char       VUINT8;\r
42 typedef signed char         VINT8;\r
43 typedef unsigned short int  VUINT16;\r
44 typedef signed short int    VINT16;\r
45 typedef unsigned long int   VUINT32;\r
46 \r
47 #define in16(var,l,h)  var = ((word)(l)) | (((word)(h)) << 8)\r
48 #define out16(l,h,val) { l = (byte)val; h = (byte)(val >> 8); }\r
49 \r
50 #define output(P, V) P = (V)\r
51 #define input(P) (P)\r
52 \r
53 #define __DI()  { asm sei; }      /* Disable global interrupts  */\r
54 #define __EI()  { asm cli; }      /* Enable global interrupts */\r
55 #define EnterCritical()     { __asm pshc; __asm sei; __asm movb 1,SP+,CCR_reg; } /* This macro is used by Processor Expert. It saves CCR register and disable global interrupts. */\r
56 #define ExitCritical()  { __asm movb CCR_reg, 1,-SP; __asm pulc; } /* This macro is used by Processor Expert. It restores CCR register saved in SaveStatusReg(). */\r
57 /* obsolete definition for backward compatibility */\r
58 #define SaveStatusReg()     EnterCritical()\r
59 #define RestoreStatusReg()  ExitCritical()\r
60 \r
61 \r
62 typedef struct {          /* Black&White Image  */\r
63   word width;             /* Image width  */\r
64   word height;            /* Image height */\r
65   byte *pixmap;           /* Image pixel bitmap */\r
66   word size;              /* Image size   */\r
67   char *name;             /* Image name   */\r
68 } TIMAGE;\r
69 typedef TIMAGE* PIMAGE ; /* Pointer to image */\r
70 \r
71 /* 16-bit register (Motorola format - big endian) */\r
72 typedef union {\r
73    word w;\r
74    struct {\r
75      byte high,low;\r
76    } b;\r
77 } TWREG;\r
78 \r
79 #endif /* __PE_Types_H */\r
80 /*\r
81 ** ###################################################################\r
82 **\r
83 **     This file was created by UNIS Processor Expert 03.33 for \r
84 **     the Motorola HCS12 series of microcontrollers.\r
85 **\r
86 ** ###################################################################\r
87 */\r