SAM3S8/SD8 Software Package: libraries/libboard_sam3s-ek2/source/timetick.c File Reference

SAM3S8/SD8 Software Package 1.2
Functions

# timetick.c File Reference

`#include "board.h"`

Go to the source code of this file.

## Functions

void | TimeTick_Increment (void)
| Handler for Sytem Tick interrupt.
uint32_t | TimeTick_Configure (uint32_t new_mck)
| Configures the SAM3 SysTick & reset tickCount. Systick interrupt handler will generates 1ms interrupt and increase a tickCount.
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.

Definition in file timetick.c.

## Function Documentation

uint32_t TimeTick_Configure | ( | uint32_t | new_mck ) |

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

Parameters:

  new_mck | Current master clock.

Definition at line 66 of file timetick.c.

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines