NNP STM Generic Remote Module git-main
Loading...
Searching...
No Matches
timer_stm.c File Reference
#include "timer.h"
#include "stm32l4xx.h"
#include "main.h"

Go to the source code of this file.

Functions

void setTimer (TIMEVAL value)
 Set the timer peripheral for the next interrupt.
 
void initTimer (void)
 
UNS8 isTimedOut (UNS32 *tRef, UNS32 tAlarm)
 Checks if a timer has timed out.
 
void resetTimeOut (UNS32 *tRef)
 Resets a timed out timer.
 
TIMEVAL getElapsedTime (void)
 Return the elapsed time to tell the Stack how much time is spent since last call.
 
void HAL_TIM_PeriodElapsedCallback (TIM_HandleTypeDef *htim)
 

Detailed Description

Date
Created on: Oct 9, 2024
Author
Jerry Ukwela (jeu6@.nosp@m.case.nosp@m..edu)

Definition in file timer_stm.c.

Function Documentation

◆ getElapsedTime()

TIMEVAL getElapsedTime ( void )

Return the elapsed time to tell the Stack how much time is spent since last call.

Returns
value TIMEVAL (unsigned long) the elapsed time

Definition at line 65 of file timer_stm.c.

Referenced by SetAlarm(), and TimeDispatch().

Here is the caller graph for this function:

◆ HAL_TIM_PeriodElapsedCallback()

void HAL_TIM_PeriodElapsedCallback ( TIM_HandleTypeDef * htim)

Definition at line 77 of file timer_stm.c.

◆ initTimer()

void initTimer ( void )

Definition at line 33 of file timer_stm.c.

◆ isTimedOut()

UNS8 isTimedOut ( UNS32 * tRef,
UNS32 tAlarm )

Checks if a timer has timed out.

Definition at line 41 of file timer_stm.c.

Referenced by runAppTask(), updateAccelerometer(), updateDiagnostics(), and updateTemperature().

Here is the caller graph for this function:

◆ resetTimeOut()

void resetTimeOut ( UNS32 * tRef)

Resets a timed out timer.

Definition at line 56 of file timer_stm.c.

Referenced by runAppTask(), updateAccelerometer(), updateDiagnostics(), and updateTemperature().

Here is the caller graph for this function:

◆ setTimer()

void setTimer ( TIMEVAL value)

Set the timer peripheral for the next interrupt.

Definition at line 23 of file timer_stm.c.

Referenced by SetAlarm(), and TimeDispatch().

Here is the caller graph for this function: