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
11 ** This bean "PE_Timer" implements internal methods and definitions
\r
12 ** used by beans working with timers.
\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
27 /* MODULE PE_Timer. */
\r
29 #include "PE_Timer.h"
\r
33 ** ===================================================================
\r
34 ** Method : PE_Timer_LngHi1 (bean PE_Timer)
\r
37 ** This method is internal. It is used by Processor Expert
\r
39 ** ===================================================================
\r
41 bool PE_Timer_LngHi1(dword High, dword Low, word *Out)
\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
51 *Out = (unsigned int)(Low >> 8);
\r
54 *Out = (unsigned int)(Low >> 8);
\r
63 ** ###################################################################
\r
65 ** This file was created by UNIS Processor Expert 03.33 for
\r
66 ** the Motorola HCS12 series of microcontrollers.
\r
68 ** ###################################################################
\r