OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [HCS12_CodeWarrior_small/] [CODE/] [PE_Types.H] - Blame information for rev 615

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.