|
QP/C++
|
#include <qk.h>
Static Public Member Functions | |
| static char_t const Q_ROM *Q_ROM_VAR | getVersion (void) |
| get the current QK version number string | |
| static void | onIdle (void) |
| QK idle callback (customized in BSPs for QK) | |
| static QMutex | mutexLock (uint8_t const prioCeiling) |
| QK priority-ceiling mutex lock. | |
| static void | mutexUnlock (QMutex const mutex) |
| QK priority-ceiling mutex unlock. | |
QK services.
This class groups together QK services. It has only static members and should not be instantiated. to the QK class (as static class members). However, to avoid C++ potential name-mangling problems in assembly language, these elements are defined outside of the QK class and use the extern "C" linkage specification.
| QP_BEGIN_ char_t const Q_ROM *Q_ROM_VAR QK::getVersion | ( | void | ) | [static] |
get the current QK version number string
Definition at line 62 of file qk.cpp.
References QP_VERSION.
| QP_BEGIN_ QMutex QK::mutexLock | ( | uint8_t const | prioCeiling | ) | [static] |
QK priority-ceiling mutex lock.
Lock the QK scheduler up to the priority level prioCeiling. The code between QK::mutexLock() and QK::mutexUnlock() should be kept to the minimum.
QMutex mux; . . . mux = QK::mutexLock(PRIO_CEILING); // access the shared resource QK::mutexUnlock(mux); . . .
Definition at line 56 of file qk_mutex.cpp.
References QK_ceilingPrio_, QS_BEGIN_NOCRIT_, QS_END_NOCRIT_, QS_QK_MUTEX_LOCK, QS_TIME_, and QS_U8_.
| void QK::mutexUnlock | ( | QMutex const | mutex | ) | [static] |
QK priority-ceiling mutex unlock.
QMutex mux; . . . mux = QK::mutexLock(PRIO_CEILING); // access the shared resource QK::mutexUnlock(mux); . . .
Definition at line 75 of file qk_mutex.cpp.
References QK_ceilingPrio_, QK_sched_(), QK_schedPrio_(), QS_BEGIN_NOCRIT_, QS_END_NOCRIT_, QS_QK_MUTEX_UNLOCK, QS_TIME_, and QS_U8_.
| static void QK::onIdle | ( | void | ) | [static] |
QK idle callback (customized in BSPs for QK)
QK::onIdle() is called continously by the QK idle loop. This callback gives the application an opportunity to enter a power-saving CPU mode, or perform some other idle processing.
1.7.6.1