SAMV71 Xplained Ultra Software Package 1.3

timetick.c File Reference

#include "board.h"
#include <assert.h>

Go to the source code of this file.

Defines

#define MAX_TIMER   4

Functions

void SysTick_Handler (void)
 Handler for System Tick interrupt.
void SetTimeEvent (TimeEvent *pEvent)
uint32_t TimeTick_Configure (void)
 Configures the System Timer. Systick interrupt handler will generates 1ms interrupt and increase a tickCount.
uint32_t GetDelayInTicks (uint32_t startTick, uint32_t endTick)
 Get Delayed number of tick.
uint32_t GetTicks (void)
 Get Delayed number of tick.
void Wait (volatile uint32_t dwMs)
 Sync Wait for several ms.
void Sleep (volatile uint32_t dwMs)
 Sync Sleep for several ms.

Variables

SyTickDelayCounter_t DelayTimer

Detailed Description

Implement the System Timer.

Definition in file timetick.c.


Function Documentation

uint32_t GetDelayInTicks ( uint32_t  startTick,
uint32_t  endTick 
)

Get Delayed number of tick.

Parameters:
startTick Start tick point.
endTick End tick point.

Definition at line 129 of file timetick.c.

uint32_t GetTicks ( void   ) 

Get Delayed number of tick.

Parameters:
startTick Start tick point.
endTick End tick point.

Definition at line 143 of file timetick.c.

void Sleep ( volatile uint32_t  dwMs  ) 

Sync Sleep for several ms.

Parameters:
dwMs Sleeping time in ms.

Definition at line 171 of file timetick.c.

Here is the call graph for this function:

uint32_t TimeTick_Configure ( void   ) 

Configures the System Timer. Systick interrupt handler will generates 1ms interrupt and increase a tickCount.

Note:
IRQ handler must be configured before invoking this function.

Definition at line 95 of file timetick.c.

void Wait ( volatile uint32_t  dwMs  ) 

Sync Wait for several ms.

Parameters:
dwMs Waiting time in ms.

Definition at line 154 of file timetick.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines