?? events.c
字號:
/** ###################################################################
** Filename : Events.C
** Project : Project
** Processor : MC9S08DZ60MLF
** Beantype : Events
** Version : Driver 01.02
** Compiler : CodeWarrior HCS08 C Compiler
** Date/Time : 2008-12-10, 上午 09:28
** Abstract :
** This is user's event module.
** Put your event handler code here.
** Settings :
** Contents :
** SM1_OnRxChar - void SM1_OnRxChar(void);
** SM1_OnRxCharExt - void SM1_OnRxCharExt(SM1_TComData Chr);
** SM1_OnTxChar - void SM1_OnTxChar(void);
** SM1_OnError - void SM1_OnError(void);
**
** (c) Copyright UNIS, spol. s r.o. 1997-2006
** UNIS, spol. s r.o.
** Jundrovska 33
** 624 00 Brno
** Czech Republic
** http : www.processorexpert.com
** mail : info@processorexpert.com
** ###################################################################*/
/* MODULE Events */
#include "Cpu.h"
#include "Events.h"
/*
** ===================================================================
** Event : SM1_OnRxChar (module Events)
**
** From bean : SM1 [SynchroMaster]
** Description :
** This event is called after a correct character is
** received.
** The event is available only when the <Interrupt
** service/event> property is enabled.
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
void SM1_OnRxChar(void)
{
/* Write your code here ... */
}
/*
** ===================================================================
** Event : SM1_OnRxCharExt (module Events)
**
** From bean : SM1 [SynchroMaster]
** Description :
** This event is called after a correct character is
** received. The parameter of the event contains the last
** received character. If an input buffer are used, the
** character is also inserted into the buffer.
** The event is available only when the <Interrupt
** service/event> property is enabled.
** Parameters :
** NAME - DESCRIPTION
** Chr - The last received character
** Returns : Nothing
** ===================================================================
*/
void SM1_OnRxCharExt(SM1_TComData Chr)
{
/* Write your code here ... */
}
/*
** ===================================================================
** Event : SM1_OnTxChar (module Events)
**
** From bean : SM1 [SynchroMaster]
** Description :
** This event is called after a character is transmitted.
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
void SM1_OnTxChar(void)
{
/* Write your code here ... */
}
/*
** ===================================================================
** Event : SM1_OnError (module Events)
**
** From bean : SM1 [SynchroMaster]
** 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.
** The event is available only when the <Interrupt
** service/event> property is enabled.
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
void SM1_OnError(void)
{
/* Write your code here ... */
}
/* END Events */
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 3.01 [03.92]
** for the Freescale HCS08 series of microcontrollers.
**
** ###################################################################
*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -