Mark3 Realtime Kernel
timer.h File Reference

Timer object declarations. More...

#include "kerneltypes.h"
#include "mark3cfg.h"
#include "ll.h"

Go to the source code of this file.

Classes

class  Mark3::Timer
 The Timer Class. This class provides kernel-managed timers, used to provide high-precision delays. Functionality is useful to both user-code, and is used extensively within the kernel and its blocking objects to implement round-robin scheduling, thread sleep, and timeouts. Provides one-shot and periodic timers for use by application code. This object relies on a target-defined hardware timer implementation, which is multiplexed by the kernel's timer scheduler. More...
 

Namespaces

 Mark3
 

Typedefs

using Mark3::TimerCallback = void(*)(Thread *pclOwner_, void *pvData_)
 

Variables

static constexpr auto Mark3::uMaxTimerTicks = uint32_t { 0x7FFFFFFF }
 Maximum value to set. More...
 
static constexpr auto Mark3::uTimerTicksInvalid = uint32_t { 0 }
 
static constexpr auto Mark3::uTimerFlagOneShot = uint8_t { 0x01 }
 Timer is one-shot. More...
 
static constexpr auto Mark3::uTimerFlagActive = uint8_t { 0x02 }
 Timer is currently active. More...
 
static constexpr auto Mark3::uTimerFlagCallback = uint8_t { 0x04 }
 Timer is pending a callback. More...
 
static constexpr auto Mark3::uTimerFlagExpired = uint8_t { 0x08 }
 Timer is actually expired. More...
 

Detailed Description

Timer object declarations.

Definition in file timer.h.