Defines | Functions

timer.h File Reference

Header file for module <timer.c> More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define EXTERN   extern
#define NO_TICK   0U
 No timer flags.
#define TICK128   1U
 Flag for 128ms events.
#define TICK256   2U
 Flag for 256ms events.
#define TICK512   4U
 Flag for 512ms events.
#define TICK1024   8U
 Flag for 1024ms events.
#define TIMER_IS_TICK128()   ((timer_GetTicks() & TICK128) != NO_TICK)
 This macro checks whether the 128ms time flag is set or not.
#define TIMER_IS_TICK256()   ((timer_GetTicks() & TICK256) != NO_TICK)
 This macro checks whether the 256ms time flag is set or not.
#define TIMER_IS_TICK512()   ((timer_GetTicks() & TICK512) != NO_TICK)
 This macro checks whether the 512ms time flag is set or not.
#define TIMER_IS_TICK1024()   ((timer_GetTicks() & TICK1024) != NO_TICK)
 This macro checks whether the 1024ms time flag is set or not.

Functions

void timer_Init (void)
 Timer module init function.
UINT32 timer_GetSystemTime (void)
 Get method for mg_u32SystemTime.
void timer_LockTicks (void)
 Function to create a copy of the time flags.
UINT8 timer_GetTicks (void)
 Get method for mg_u8TicksOut.

Detailed Description

Author:
Philipp Bank
Copyright:
Creative Commons by-nc-sa 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)

Definition in file timer.h.