15 #ifndef _NB_INTERVAL_TIMER_H 16 #define _NB_INTERVAL_TIMER_H 18 const int IFIRST_UNUSED_TIMER = -1;
41 int IntervalOSFlag(
OS_FLAGS *p_toFlag, uint32_t flag_value,
int num_per_sec,
int timer = IFIRST_UNUSED_TIMER);
int IntervalOSFlag(OS_FLAGS *p_toFlag, uint32_t flag_value, int num_per_sec, int timer=IFIRST_UNUSED_TIMER)
Sets a flag at requested interval.
Semaphores are used to control access to shared resource critical section, or to communicate between ...
Definition: nbrtos.h:318
int IntervalInterruptCallback(void(*p_toCallbackFunc)(), int num_per_sec, int timer=IFIRST_UNUSED_TIMER)
Calls a function at requested interval. Note that the callback function is called from within the tim...
void IntervalStop(int timer_number)
Stops an existing Interval Timer and frees the resource.
An OS_FLAGS object is used to set, clear, and pend on a set of flags that is held and maintained by t...
Definition: nbrtos.h:1009
int IntervalOSSem(OS_SEM *p_toSem, int num_per_sec, int timer=IFIRST_UNUSED_TIMER)
Posts to a semaphore at the requested interval.