144#ifndef _NB_DELAY_TIMER_H
145#define _NB_DELAY_TIMER_H
147#include <constants.h>
234 void *MiscHardwarePtr;
385 bool valid() {
return TimerNumber >= 0; }
High-resolution microsecond delay timer class.
Definition HiResDelay.h:216
bool valid()
Verify the delay object is valid and ready to use.
Definition HiResDelay.h:385
void DelayUsec(uint32_t usec)
Perform a blocking delay with microsecond precision.
DelayObject(int Timer=FIRST_UNUSED_TIMER)
Construct a high-resolution delay timer object.
void _wake()
Internal ISR callback to wake blocked task (internal use only)
Definition HiResDelay.h:399
~DelayObject()
Destructor - releases the allocated hardware timer.
Semaphores are used to control access to shared resources or or to communicate between tasks in a mul...
Definition nbrtos.h:407
uint8_t Post()
Posts to the semaphore, increasing it's value by 1.