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 : MC9S12DP256BCPV
\r
6 ** Beantype : PE_Types
\r
7 ** Version : Driver 01.04
\r
8 ** Compiler : Metrowerks HC12 C Compiler
\r
9 ** Date/Time : 13/06/2005, 20:14
\r
11 ** This bean "PE_Types" contains internal definitions
\r
15 ** No public methods
\r
17 ** (c) Copyright UNIS, spol. s r.o. 1997-2002
\r
18 ** UNIS, spol. s r.o.
\r
22 ** http : www.processorexpert.com
\r
23 ** mail : info@processorexpert.com
\r
24 ** ###################################################################*/
\r
26 #ifndef __PE_Types_H
\r
27 #define __PE_Types_H
\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
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
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
50 #define output(P, V) P = (V)
\r
51 #define input(P) (P)
\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
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
69 typedef TIMAGE* PIMAGE ; /* Pointer to image */
\r
71 /* 16-bit register (Motorola format - big endian) */
\r
79 #endif /* __PE_Types_H */
\r
81 ** ###################################################################
\r
83 ** This file was created by UNIS Processor Expert 03.33 for
\r
84 ** the Motorola HCS12 series of microcontrollers.
\r
86 ** ###################################################################
\r