1 /** ###################################################################
2 ** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
3 ** Filename : ButtonInterrupt.H
5 ** Processor : MC9S12C32CFU
7 ** Version : Bean 02.025, Driver 01.06, CPU db: 2.87.276
8 ** Compiler : Metrowerks HC12 C Compiler
9 ** Date/Time : 19/05/2005, 19:02
11 ** This bean "ExtInt" implements an external
12 ** interrupt, its control methods and interrupt/event
13 ** handling procedure.
14 ** The bean uses one pin which generates interrupt on
17 ** Interrupt name : INT_PortP
18 ** User handling procedure : ButtonInterrupt_OnInterrupt
21 ** ----------------------------------------------------
22 ** Number (on package) | Name
23 ** ----------------------------------------------------
25 ** ----------------------------------------------------
29 ** Bit number (in port) : 0
30 ** Bit mask of the port : 1
32 ** Signal edge/level : falling
35 ** Initial state : Disabled
37 ** Edge register : PPSP [605]
38 ** Priority register : HPRIO [31]
39 ** Enable register : PIEP [606]
40 ** Request register : PIFP [607]
42 ** Port data register : PTP [600]
43 ** Port control register : DDRP [602]
45 ** Enable - void ButtonInterrupt_Enable(void);
47 ** (c) Copyright UNIS, spol. s r.o. 1997-2002
52 ** http : www.processorexpert.com
53 ** mail : info@processorexpert.com
54 ** ###################################################################*/
56 #ifndef __ButtonInterrupt_H
57 #define __ButtonInterrupt_H
59 /* MODULE ButtonInterrupt. */
61 /*Including shared modules, which are used in the whole project*/
70 #pragma CODE_SEG ButtonInterrupt_CODE /* Code section for this module. */
72 void ButtonInterrupt_Enable(void);
74 ** ===================================================================
75 ** Method : ButtonInterrupt_Enable (bean ExtInt)
78 ** Enable the bean - the external events are accepted.
81 ** ===================================================================
84 #pragma CODE_SEG __NEAR_SEG NON_BANKED /* Interrupt section for this module. Placement will be in NON_BANKED area. */
85 __interrupt void ButtonInterrupt_Interrupt(void);
86 #pragma CODE_SEG ButtonInterrupt_CODE /* Code section for this module. */
88 ** ===================================================================
89 ** Method : ButtonInterrupt_Interrupt (bean ExtInt)
92 ** This method is internal. It is used by Processor Expert
94 ** ===================================================================
97 #pragma CODE_SEG DEFAULT /* Change code section to DEFAULT. */
99 /* END ButtonInterrupt. */
101 #endif /* __ButtonInterrupt_H*/
103 ** ###################################################################
105 ** This file was created by UNIS Processor Expert 03.33 for
106 ** the Motorola HCS12 series of microcontrollers.
108 ** ###################################################################