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

Method initialize

Sming/Platform/System.cpp:50–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50bool SystemClass::initialize()
51{
52 if(state != eSS_None) {
53 return false;
54 }
55
56 state = eSS_Intializing;
57
58 // Initialise the global task queue
59 if(!system_os_task(taskHandler, USER_TASK_PRIO_1, taskQueue, TASK_QUEUE_LENGTH)) {
60 return false;
61 }
62
63#ifdef ARCH_ESP8266
64 system_init_done_cb([]() { state = eSS_Ready; });
65#else
66 state = eSS_Ready;
67#endif
68
69 return true;
70}
71
72bool SystemClass::queueCallback(TaskCallback callback, void* param)
73{

Callers 6

initFunction · 0.45
initFunction · 0.45
app_mainFunction · 0.45
user_initFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

system_init_done_cbFunction · 0.85
system_os_taskFunction · 0.50

Tested by

no test coverage detected