diff options
Diffstat (limited to 'applications/freertos')
-rw-r--r-- | applications/freertos/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/applications/freertos/main.cpp b/applications/freertos/main.cpp index b926d1e..539dff5 100644 --- a/applications/freertos/main.cpp +++ b/applications/freertos/main.cpp @@ -252,9 +252,12 @@ void inferenceJobTask(void *pvParameters) { } // namespace +/* Keep the queue ouf of the stack sinde freertos resets it when the scheduler starts.*/ +QueueHandle_t inferenceProcessQueue; + int main() { // Inference process - QueueHandle_t inferenceProcessQueue = xQueueCreate(10, sizeof(xInferenceJob *)); + inferenceProcessQueue = xQueueCreate(10, sizeof(xInferenceJob *)); xTaskCreate(inferenceProcessTask, "inferenceProcess", 2 * 1024, inferenceProcessQueue, 1, nullptr); // Inference job task |