Commit 40fc588c authored by Federico Vaga's avatar Federico Vaga

fwatch: run main application

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 0de32001
......@@ -39,14 +39,20 @@
xQueueHandle appQueue;
static void _startMain(void *params)
{
struct application *app = params;
fwatch_application_run(app);
}
void startMain(application* app) {
appQueue = xQueueCreate(APP_QUEUE_LEN, sizeof(struct event));
if(!appQueue) {
// TODO oops..
}
if(xTaskCreate(app->main, (const signed char*)app->name, APP_STACK_SIZE,
NULL, APP_PRIORITY, NULL) != pdPASS) {
if(xTaskCreate(_startMain, (const signed char*)app->name, APP_STACK_SIZE,
(void *)app, APP_PRIORITY, NULL) != pdPASS) {
// TODO oops..
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment