Defines | Functions

timer.h File Reference

#include "../lpc_config.h"

Go to the source code of this file.

Defines

#define START   0x07
#define MATCH   TRUE
#define NOT_MATCH   FALSE
#define CHECK_IF_MATCH   0x08

Functions

void T0Init (int ms)
void T0Stop ()
void T0Start ()
int T0Get ()
void delayMs (unsigned int delayInMs)
void delayUs (unsigned int delayInUs)
int timeoutMs (unsigned int delayInMs, unsigned int condition)

Define Documentation

#define CHECK_IF_MATCH   0x08

Definition at line 30 of file timer.h.

#define MATCH   TRUE

Definition at line 28 of file timer.h.

#define NOT_MATCH   FALSE

Definition at line 29 of file timer.h.

#define START   0x07

Definition at line 27 of file timer.h.


Function Documentation

void delayMs ( unsigned int  delayInMs  ) 

Definition at line 45 of file timer.c.

void delayUs ( unsigned int  delayInUs  ) 

Definition at line 62 of file timer.c.

int T0Get (  ) 

Definition at line 40 of file timer.c.

void T0Init ( int  ms  ) 

Definition at line 23 of file timer.c.

void T0Start (  ) 

Definition at line 35 of file timer.c.

void T0Stop (  ) 

Definition at line 31 of file timer.c.

int timeoutMs ( unsigned int  delayInMs,
unsigned int  condition 
)

Definition at line 79 of file timer.c.