LPCOpen Platform for LPC18XX/43XX microcontrollers  18XX43XX
LPCOpen Platform for the NXP LPC18XX/43XX family of Microcontrollers
Functions | Variables
stopwatch_18xx_43xx.c File Reference
#include "chip.h"
#include "stopwatch.h"

Go to the source code of this file.

Functions

void StopWatch_Init (void)
 Initialize stopwatch. More...
 
uint32_t StopWatch_Start (void)
 Start a stopwatch. More...
 
uint32_t StopWatch_TicksPerSecond (void)
 Returns number of ticks per second of the stopwatch timer. More...
 
uint32_t StopWatch_TicksToMs (uint32_t ticks)
 Converts from stopwatch ticks to mS. More...
 
uint32_t StopWatch_TicksToUs (uint32_t ticks)
 Converts from stopwatch ticks to uS. More...
 
uint32_t StopWatch_MsToTicks (uint32_t mS)
 Converts from mS to stopwatch ticks. More...
 
uint32_t StopWatch_UsToTicks (uint32_t uS)
 Converts from uS to stopwatch ticks. More...
 

Variables

static uint32_t ticksPerSecond
 
static uint32_t ticksPerMs
 
static uint32_t ticksPerUs
 

Variable Documentation

uint32_t ticksPerMs
static

Definition at line 41 of file stopwatch_18xx_43xx.c.

uint32_t ticksPerSecond
static

Definition at line 40 of file stopwatch_18xx_43xx.c.

uint32_t ticksPerUs
static

Definition at line 42 of file stopwatch_18xx_43xx.c.