]> git.sur5r.net Git - freertos/blob - Demo/HCS12_CodeWarrior_banked/CODE/Byte1.H
First version under SVN is V4.0.1
[freertos] / Demo / HCS12_CodeWarrior_banked / CODE / Byte1.H
1 /** ###################################################################\r
2 **     THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.\r
3 **     Filename  : Byte1.H\r
4 **     Project   : RTOSDemo\r
5 **     Processor : MC9S12DP256BCPV\r
6 **     Beantype  : ByteIO\r
7 **     Version   : Bean 02.019, Driver 01.03, CPU db: 2.87.283\r
8 **     Compiler  : Metrowerks HC12 C Compiler\r
9 **     Date/Time : 16/06/2005, 21:10\r
10 **     Abstract  :\r
11 **         This bean "ByteIO" implements an one-byte input/output.\r
12 **         It uses one 8-bit port.\r
13 **         Note: This bean is set to work in Output direction only.\r
14 **         Methods of this bean are mostly implemented as a macros \r
15 **         (if supported by target langauage and compiler).\r
16 **     Settings  :\r
17 **         Port name                   : B\r
18 **\r
19 **         Initial direction           : Output (direction cannot be changed)\r
20 **         Initial output value        : 255 = 0FFH\r
21 **         Initial pull option         : off\r
22 **\r
23 **         8-bit data register         : PORTB     [1]\r
24 **         8-bit control register      : DDRB      [3]\r
25 **\r
26 **             ----------------------------------------------------\r
27 **                   Bit     |   Pin   |   Name\r
28 **             ----------------------------------------------------\r
29 **                    0      |    24   |   PB0_ADDR0_DATA0\r
30 **                    1      |    25   |   PB1_ADDR1_DATA1\r
31 **                    2      |    26   |   PB2_ADDR2_DATA2\r
32 **                    3      |    27   |   PB3_ADDR3_DATA3\r
33 **                    4      |    28   |   PB4_ADDR4_DATA4\r
34 **                    5      |    29   |   PB5_ADDR5_DATA5\r
35 **                    6      |    30   |   PB6_ADDR6_DATA6\r
36 **                    7      |    31   |   PB7_ADDR7_DATA7\r
37 **             ----------------------------------------------------\r
38 **     Contents  :\r
39 **         PutBit - void Byte1_PutBit(byte Bit,bool Val);\r
40 **         NegBit - void Byte1_NegBit(byte Bit);\r
41 **\r
42 **     (c) Copyright UNIS, spol. s r.o. 1997-2002\r
43 **     UNIS, spol. s r.o.\r
44 **     Jundrovska 33\r
45 **     624 00 Brno\r
46 **     Czech Republic\r
47 **     http      : www.processorexpert.com\r
48 **     mail      : info@processorexpert.com\r
49 ** ###################################################################*/\r
50 \r
51 #ifndef __Byte1_H\r
52 #define __Byte1_H\r
53 \r
54 /* MODULE Byte1. */\r
55 \r
56 /*Including shared modules, which are used in the whole project*/\r
57 #include "PE_Types.h"\r
58 #include "PE_Error.h"\r
59 #include "PE_Const.h"\r
60 #include "IO_Map.h"\r
61 #include "PE_Timer.h"\r
62 \r
63 #include "Cpu.h"\r
64 \r
65 #pragma CODE_SEG Byte1_CODE            /* Code section for this module. */\r
66 \r
67 /*\r
68 ** ===================================================================\r
69 **     Method      :  Byte1_PutBit (bean ByteIO)\r
70 **\r
71 **     Description :\r
72 **         This method writes the new value to the specified bit\r
73 **         of the output value.\r
74 **     Parameters  :\r
75 **         NAME       - DESCRIPTION\r
76 **         BitNum     - Number of the bit (0 to 7)\r
77 **         Val        - New value of the bit (FALSE or TRUE)\r
78 **                      FALSE = "0" or "Low", TRUE = "1" or "High"\r
79 **     Returns     : Nothing\r
80 ** ===================================================================\r
81 */\r
82 void Byte1_PutBit(byte BitNum, byte Value);\r
83 \r
84 /*\r
85 ** ===================================================================\r
86 **     Method      :  Byte1_NegBit (bean ByteIO)\r
87 **\r
88 **     Description :\r
89 **         This method negates (invertes) the specified bit of the\r
90 **         output value.\r
91 **     Parameters  :\r
92 **         NAME       - DESCRIPTION\r
93 **         BitNum     - Number of the bit to invert (0 to 7)\r
94 **     Returns     : Nothing\r
95 ** ===================================================================\r
96 */\r
97 void Byte1_NegBit(byte BitNum);\r
98 \r
99 #pragma CODE_SEG DEFAULT               /* Change code section to DEFAULT. */\r
100 \r
101 /* END Byte1. */\r
102 \r
103 #endif /* __Byte1_H*/\r
104 /*\r
105 ** ###################################################################\r
106 **\r
107 **     This file was created by UNIS Processor Expert 03.33 for \r
108 **     the Motorola HCS12 series of microcontrollers.\r
109 **\r
110 ** ###################################################################\r
111 */\r