MCPcopy Create free account
hub / github.com/BruceDevices/firmware / startInterpreterTask

Function startInterpreterTask

src/modules/bjs_interpreter/interpreter.cpp:118–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void startInterpreterTask() {
119 if (interpreterTaskHandler != NULL) {
120 log_w("Interpreter task already running");
121 interpreter_state = 1;
122 return;
123 }
124
125 xTaskCreateUniversal(
126 interpreterHandler, // Task function
127 "interpreterHandler", // Task Name
128 INTERPRETER_TASK_STACK_SIZE, // Stack size
129 NULL, // Task parameters
130 2, // Task priority (0 to 3), loopTask has priority 2.
131 &interpreterTaskHandler, // Task handle
132 ARDUINO_RUNNING_CORE // run on core the same core as loop task
133 );
134}
135
136void run_bjs_script() {
137 String filename;

Callers 1

run_bjs_script_headlessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected