/* ** ################################################################### ** ** This file was created by Processor Expert 02.30 for ** the Fujitsu MB90540 series of microcontrollers. ** ** Project : pokus ** ** Processor : MB90F543 ** ** Componenttype : Events ** ** Filename : Events.H ** ** Date/Time : 13/07/1999, 12:18 ** ** Abstract : ** ** This is user's event module. ** Put your event handler code here. ** ** Settings : ** ** ** Contents : ** ** TIBeforeNewSpeed - void TIBeforeNewSpeed(void); ** TIAfterNewSpeed - void TIAfterNewSpeed(void); ** TIOnInterrupt - void TIOnInterrupt(void); ** ** Copyright: 1997 - 2009 Freescale Semiconductor, Inc. All Rights Reserved. ** ** ** ** http : www.freescale.com ** mail : support@freescale.com ** ** ################################################################### */ #ifndef __Events_H #define __Events_H /* MODULE Events */ #include "PE_Types.h" #include "PE_Error.h" #include "PE_Const.h" #include "IO_Map.h" #include "RT.h" typedef struct { byte chron :1; byte alarm :1; byte day :1; byte hour :1; byte minute :1; byte second :1; byte tb1 :1; byte tb2 :1; } Flags; extern word cnt; extern char *alarm; extern volatile Flags flags; void TIBeforeNewSpeed(void); /* ** =================================================================== ** ** Event : TIBeforeNewSpeed (module Events) ** ** From Component : TI [TimerInt] ** ** Description : ** ** This event is called when the CPU speed mode is being changed ** (using CPU methods) - before the change. ** ** Parameters : ** ** None ** ** Returns : ** ** Nothing ** ** =================================================================== */ void TIAfterNewSpeed(void); /* ** =================================================================== ** ** Event : TIAfterNewSpeed (module Events) ** ** From Component : TI [TimerInt] ** ** Description : ** ** This event is called when the CPU speed mode is being changed ** (using CPU methods) - after the change. ** ** Parameters : ** ** None ** ** Returns : ** ** Nothing ** ** =================================================================== */ void TIOnInterrupt(void); /* ** =================================================================== ** ** Event : TIOnInterrupt (module Events) ** ** From Component : TI [TimerInt] ** ** Description : ** ** This event is called periodically with specified ** period/frequency (only when the Component is enabled - "Enable" ** and the events are enabled - "EnableEvent"). ** ** Parameters : ** ** None ** ** Returns : ** ** Nothing ** ** =================================================================== */ void TDBeforeNewSpeed(void); /* ** =================================================================== ** ** Event : TDBeforeNewSpeed (module Events) ** ** From Component : TD [TimeDate] ** ** Description : ** ** This event is called when the CPU speed mode is being changed ** (using CPU methods) - before the change. ** ** Parameters : ** ** None ** ** Returns : ** ** Nothing ** ** =================================================================== */ void TDAfterNewSpeed(void); /* ** =================================================================== ** ** Event : TDAfterNewSpeed (module Events) ** ** From Component : TD [TimeDate] ** ** Description : ** ** This event is called when the CPU speed mode is being changed ** (using CPU methods) - after the change. ** ** Parameters : ** ** None ** ** Returns : ** ** Nothing ** ** =================================================================== */ void TDOnAlarm(void); /* ** =================================================================== ** ** Event : TDOnAlarm (module Events) ** ** From Component : TD [TimeDate] ** ** Description : ** ** This event is called whenever an actual time is equal ** to the alarm time (set by SetAlarm method). ** ** Parameters : ** ** None ** ** Returns : ** ** Nothing ** ** =================================================================== */ void Cpu_OnSwINT(void); /* ** =================================================================== ** Event : Cpu_OnSwINT (module Events) ** ** From Component : Cpu [MC68HC908MR32_56] ** Description : ** This software event is called after software reset. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void RT_OnAlarm(void); /* ** =================================================================== ** Event : RT_OnAlarm (module Events) ** ** From Component : RT [RTC] ** Description : ** This event is called whenever an actual time is equal to ** the alarm time. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void RTC1_OnAlarm(void); /* ** =================================================================== ** Event : RTC1_OnAlarm (module Events) ** ** From Component : RT [RTC] ** Description : ** This event is called whenever an actual time is equal to ** the alarm time. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void RT_OnChronograph(void); /* ** =================================================================== ** Event : RT_OnChronograph (module Events) ** ** From Component : RT [RTC] ** Description : ** This event is called each ticks of the chronograph ** counter (each 1/100 or 1/128 of second) . ** Parameters : None ** Returns : Nothing ** =================================================================== */ void RT_OnDay(void); /* ** =================================================================== ** Event : RT_OnDay (module Events) ** ** From Component : RT [RTC] ** Description : ** This event is called on every increment of the day ** counter. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void RT_OnHour(void); /* ** =================================================================== ** Event : RT_OnHour (module Events) ** ** From Component : RT [RTC] ** Description : ** This event is called on every increment of the hour ** counter. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void RT_OnMinute(void); /* ** =================================================================== ** Event : RT_OnMinute (module Events) ** ** From Component : RT [RTC] ** Description : ** This event is called on every increment of the minute ** counter. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void RT_OnSecond(void); /* ** =================================================================== ** Event : RT_OnSecond (module Events) ** ** From Component : RT [RTC] ** Description : ** This event is called on every increment of the second ** counter. ** Parameters : None ** Returns : Nothing ** =================================================================== */ void RT_OnTimebase1(void); /* ** =================================================================== ** Event : RT_OnTimebase1 (module Events) ** ** From Component : RT [RTC] ** Description : ** This event is called on every increment of the timebase 1 ** counter (every 0.5 second). ** Parameters : None ** Returns : Nothing ** =================================================================== */ void RT_OnTimebase2(void); /* ** =================================================================== ** Event : RT_OnTimebase2 (module Events) ** ** From Component : RT [RTC] ** Description : ** This event is called on every increment of the timebase 2 ** (every 0.25 second) ** Parameters : None ** Returns : Nothing ** =================================================================== */ /* END Events */ #endif /* __Events_H*/ /* ** ################################################################### ** ** This file was created by Processor Expert 02.30 for ** the Fujitsu MB90540 series of microcontrollers. ** ** ################################################################### */