STA_Timer Functions

group sta_timer

This module handles the initialization and handling of the CPU timer system used to time the execution of the tests run by this application.

The code for this module is contained in sta_timer.c, with sta_timer.h containing the API declarations.

Functions

__interrupt void STA_Timer_timer0Isr(void)

Timer 0 ISR.

void STA_Timer_config(uint16_t msTimeOut)

Configures Timer 0 to tick so that the STA will continue to make progress.

Return

None.

Parameters
  • msTimeOut: is the number of milliseconds between each execution of a test found in sta_tests.c. Another test will execute every time this STA timer runs out.

bool STA_Timer_isTimedOut(void)

Checks if Timer 0 has timed-out.

Return

Returns true if the timer has timed-out and false if it has not.

void STA_Timer_clearTimeOut(void)

Clears Timer 0 time-out flag.

Return

None.

void STA_Timer_restart(void)

Restarts Timer 0.

Return

None.