]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/HCS12_CodeWarrior_small/CODE/PE_Timer.C
Add FreeRTOS-Plus directory.
[freertos] / FreeRTOS / Demo / HCS12_CodeWarrior_small / CODE / PE_Timer.C
1 /** ###################################################################\r
2 **     THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.\r
3 **     Filename  : PE_Timer.C\r
4 **     Project   : RTOSDemo\r
5 **     Processor : MC9S12C32CFU\r
6 **     Beantype  : PE_Timer\r
7 **     Version   : Driver 01.00\r
8 **     Compiler  : Metrowerks HC12 C Compiler\r
9 **     Date/Time : 17/05/2005, 08:44\r
10 **     Abstract  :\r
11 **         This bean "PE_Timer" implements internal methods and definitions\r
12 **         used by beans working with timers.\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 \r
27 /* MODULE PE_Timer. */\r
28 \r
29 #include "PE_Timer.h"\r
30 \r
31 \r
32 /*\r
33 ** ===================================================================\r
34 **     Method      :  PE_Timer_LngHi1 (bean PE_Timer)\r
35 **\r
36 **     Description :\r
37 **         This method is internal. It is used by Processor Expert\r
38 **         only.\r
39 ** ===================================================================\r
40 */\r
41 bool PE_Timer_LngHi1(dword High, dword Low, word *Out) \r
42 {\r
43   if ((High == 0) && ((Low >> 24) == 0)) \r
44     if ((Low & 0x80) != 0) {\r
45       if ((Low >> 8) < 0xFFFF) {\r
46         *Out = ((unsigned int)(Low >> 8))+1;\r
47         return FALSE;\r
48       }  \r
49     }   \r
50     else {\r
51       *Out = (unsigned int)(Low >> 8);\r
52       return FALSE;\r
53     }  \r
54   *Out = (unsigned int)(Low >> 8);\r
55   return TRUE;\r
56 }\r
57 \r
58 \r
59 \r
60 /* END PE_Timer. */\r
61 \r
62 /*\r
63 ** ###################################################################\r
64 **\r
65 **     This file was created by UNIS Processor Expert 03.33 for \r
66 **     the Motorola HCS12 series of microcontrollers.\r
67 **\r
68 ** ###################################################################\r
69 */\r