QP/C  7.1.3
Real-Time Embedded Framework
Loading...
Searching...
No Matches
QV Class Reference

QV cooperative kernel.

#include <qv.h>

Static Public Member Functions

void QV_onIdle (void)
 

Public Attributes

uint8_t dummy
 

Member Function Documentation

◆ QV_onIdle()

void QV_onIdle ( void  )
static

QV idle callback (customized in BSPs)

QV_onIdle() is called by the cooperative QV kernel (from QF_run()) when the scheduler detects that no events are available for active objects (the idle condition). This callback gives the application an opportunity to enter a power-saving CPU mode, or perform some other idle processing (such as QS software tracing output).

Note
QV_onIdle() is invoked with interrupts DISABLED because the idle condition can be asynchronously changed at any time by an interrupt. QV_onIdle() MUST enable the interrupts internally, but not before putting the CPU into the low-power mode. (Ideally, enabling interrupts and low-power mode should happen atomically). At the very least, the function MUST enable interrupts, otherwise interrupts will remain disabled permanently.

Member Data Documentation

◆ dummy

uint8_t dummy

The documentation for this class was generated from the following file: