MCPcopy Create free account
hub / github.com/SmingHub/Sming / queueCallback

Method queueCallback

Sming/Platform/System.cpp:72–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72bool SystemClass::queueCallback(TaskCallback callback, void* param)
73{
74 if(callback == nullptr) {
75 return false;
76 }
77
78#ifdef ENABLE_TASK_COUNT
79 auto level = noInterrupts();
80 ++taskCount;
81 if(taskCount > maxTaskCount) {
82 maxTaskCount = taskCount;
83 }
84 restoreInterrupts(level);
85#endif
86
87 return system_os_post(USER_TASK_PRIO_1, reinterpret_cast<os_signal_t>(callback),
88 reinterpret_cast<os_param_t>(param));
89}
90
91bool SystemClass::queueCallback(InterruptCallback callback)
92{

Callers 15

interruptHandlerFunction · 0.45
COMMAND_HANDLERFunction · 0.45
readConsoleFunction · 0.45
queueDelegateCallbackMethod · 0.45
hwTimerCallbackFunction · 0.45
runTestFunction · 0.45
i2sCallbackFunction · 0.45
app2_mainFunction · 0.45
timer1CallbackMethod · 0.45
nextTestMethod · 0.45
smg_timer_setfnFunction · 0.45
interruptProcessorFunction · 0.45

Calls 3

noInterruptsFunction · 0.50
restoreInterruptsFunction · 0.50
system_os_postFunction · 0.50

Tested by

no test coverage detected