11 #include "RtosCfg.hpp"
12 #include "RtosRunnable.hpp"
13 #include "RtosPortable.hpp"
14 #include "RtosPortMacros.hpp"
27 friend class RtosInterrupt;
47 return ((
TICK) ms * RTOS_CFG_TICK_FREQUENCY / 1000);
56 return ((uint32_t) tick * 1000 / RTOS_CFG_TICK_FREQUENCY);
79 RtosPortable::enterCriticalSection();
86 RtosPortable::exitCriticalSection();
93 RtosPortable::disableAllInt();
100 RtosPortable::enableAllInt();
106 inline static void nop() {
128 static void*
schedule(
void* stackPointer);
131 #if RTOS_CFG_TRACE_BUFFER_SIZE
137 static int getTraceBuffer(TRACE_TAG** p);
138 static void releaseBuffer(
int count);
139 static void clearTraceBuffer();
146 TRACE_TAG buffer[RTOS_CFG_TRACE_BUFFER_SIZE];
148 static TRACE_BUFFER sTraceBuffer;