Robobo
timetick.c File Reference
#include "chip.h"

Functions

void TimeTick_Increment (void)
 Handler for Sytem Tick interrupt.
 
uint32_t TimeTick_Configure (uint32_t dwNew_MCK)
 Configures the SAM3 SysTick & reset tickCount. Systick interrupt handler will generates 1ms interrupt and increase a tickCount. More...
 
uint32_t GetTickCount (void)
 Get current Tick Count, in ms.
 
void Wait (volatile uint32_t dwMs)
 Sync Wait for several ms.
 
void Sleep (volatile uint32_t dwMs)
 Sync Sleep for several ms.
 

Detailed Description

Implement simple system tick usage.

Function Documentation

uint32_t TimeTick_Configure ( uint32_t  dwNew_MCK)

Configures the SAM3 SysTick & reset tickCount. Systick interrupt handler will generates 1ms interrupt and increase a tickCount.

Parameters
dwNew_MCKCurrent master clock.