NNP STM Generic Remote Module git-main
Loading...
Searching...
No Matches
timer.c File Reference
#include <applicfg.h>
#include "timer.h"
#include "ObjDict.h"
#include "main.h"

Go to the source code of this file.

Macros

#define min_val(a, b)
 

Functions

TIMER_HANDLE SetAlarm (CO_Data *d, UNS32 id, TimerCallback_t callback, TIMEVAL value, TIMEVAL period)
 Set an alarm to execute a callback function when expired.
 
TIMER_HANDLE DelAlarm (TIMER_HANDLE handle)
 Delete an alarm before expiring.
 
void TimeDispatch (void)
 TimeDispatch is called on each timer expiration -—.
 

Variables

s_timer_entry timers [MAX_NB_TIMER] = {{TIMER_FREE, NULL, NULL, 0, 0, 0},}
 
TIMEVAL total_sleep_time = TIMEVAL_MAX
 
TIMER_HANDLE last_timer_raw = -1
 
int tdcount =0
 

Detailed Description

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

Definition in file timer.c.

Macro Definition Documentation

◆ min_val

#define min_val ( a,
b )
Value:
((a<b)?a:b)

Definition at line 25 of file timer.c.

Variable Documentation

◆ last_timer_raw

TIMER_HANDLE last_timer_raw = -1

Definition at line 23 of file timer.c.

◆ tdcount

int tdcount =0

Definition at line 97 of file timer.c.

◆ timers

s_timer_entry timers[MAX_NB_TIMER] = {{TIMER_FREE, NULL, NULL, 0, 0, 0},}

Definition at line 20 of file timer.c.

◆ total_sleep_time

TIMEVAL total_sleep_time = TIMEVAL_MAX

Definition at line 22 of file timer.c.