blob: de1680f54c11c717c4a152f88bd6aabeb3f81852 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
/** ###################################################################
** Filename : Events.C
** Project : RTOSDemo
** Processor : MC9S12DP256BCPV
** Beantype : Events
** Version : Driver 01.01
** Compiler : Metrowerks HC12 C Compiler
** Date/Time : 14/06/2005, 16:34
** Abstract :
** This is user's event module.
** Put your event handler code here.
** Settings :
** Contents :
** TickTimer_OnInterrupt - void TickTimer_OnInterrupt(void);
**
** (c) Copyright UNIS, spol. s r.o. 1997-2002
** UNIS, spol. s r.o.
** Jundrovska 33
** 624 00 Brno
** Czech Republic
** http : www.processorexpert.com
** mail : info@processorexpert.com
** ###################################################################*/
/* MODULE Events */
/*Including used modules for compilling procedure*/
#include "Cpu.h"
#include "Events.h"
#include "TickTimer.h"
#include "Byte1.h"
#include "COM0.h"
/*Include shared modules, which are used for whole project*/
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
#include "PE_Timer.h"
/*
** ===================================================================
** Event : TickTimer_OnInterrupt (module Events)
**
** From bean : TickTimer [TimerInt]
** Description :
** When a timer interrupt occurs this event is called (only
** when the bean is enabled - "Enable" and the events are
** enabled - "EnableEvent").
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
void TickTimer_OnInterrupt(void)
{
/* Write your code here ... */
}
/*
** ===================================================================
** Event : COM0_OnError (module Events)
**
** From bean : COM0 [AsynchroSerial]
** Description :
** This event is called when a channel error (not the error
** returned by a given method) occurs. The errors can be
** read using <GetError> method.
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
void COM0_OnError(void)
{
/* Write your code here ... */
}
/*
** ===================================================================
** Event : COM0_OnRxChar (module Events)
**
** From bean : COM0 [AsynchroSerial]
** Description :
** This event is called after a correct character is
** received. This
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
void COM0_OnRxChar(void)
{
/* Write your code here ... */
}
/*
** ===================================================================
** Event : COM0_OnTxChar (module Events)
**
** From bean : COM0 [AsynchroSerial]
** Description :
** This event is called after a character is transmitted.
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
void COM0_OnTxChar(void)
{
/* Write your code here ... */
}
/*
** ===================================================================
** Event : COM0_OnFullRxBuf (module Events)
**
** From bean : COM0 [AsynchroSerial]
** Description :
** This event is called when the input buffer is full.
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
void COM0_OnFullRxBuf(void)
{
/* Write your code here ... */
}
/*
** ===================================================================
** Event : COM0_OnFreeTxBuf (module Events)
**
** From bean : COM0 [AsynchroSerial]
** Description :
** This event is called after the last character in output
** buffer is transmitted.
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
void COM0_OnFreeTxBuf(void)
{
/* Write your code here ... */
}
/* END Events */
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 03.33 for
** the Motorola HCS12 series of microcontrollers.
**
** ###################################################################
*/
|