void setupTask(void *delTask)
{
        initialize_tracks();
        initialize_logger_config();
        InitLoggerHardware();
        initMessaging();

        startUSBCommTask(RCP_INPUT_PRIORITY);
        startGPIOTasks(RCP_INPUT_PRIORITY);
        startGPSTask(RCP_INPUT_PRIORITY);
        startOBD2Task(RCP_INPUT_PRIORITY);
        startFileWriterTask(RCP_OUTPUT_PRIORITY);
        startConnectivityTask(RCP_OUTPUT_PRIORITY);
        startLoggerTaskEx(RCP_LOGGING_PRIORITY);
        startLuaTask(RCP_LUA_PRIORITY);

        /* Removes this setup task from the scheduler */
        if (delTask)
                vTaskDelete(NULL);
}
Exemplo n.º 2
0
void setupTask(void *params)
{
    (void)params;

    initialize_tracks();
    initialize_logger_config();
    initialize_script();
    InitLoggerHardware();
    initMessaging();

    startGPIOTasks			( GPIO_TASK_PRIORITY );
    startUSBCommTask		( USB_COMM_TASK_PRIORITY );
    startLuaTask			( LUA_TASK_PRIORITY );
    startFileWriterTask		( FILE_WRITER_TASK_PRIORITY );
    startConnectivityTask	( CONNECTIVITY_TASK_PRIORITY );
    startGPSTask			( GPS_TASK_PRIORITY );
    startOBD2Task			( OBD2_TASK_PRIORITY);
    startLoggerTaskEx		( LOGGER_TASK_PRIORITY );

    /* Removes this setup task from the scheduler */
    vTaskDelete(NULL);
}
Exemplo n.º 3
0
void setupTask(void *param)
{
        initialize_tracks();
        initialize_logger_config();

        InitLoggerHardware();
        initMessaging();

        startGPSTask(RCP_INPUT_PRIORITY);

#if USB_SERIAL_SUPPORT
        startUSBCommTask(RCP_INPUT_PRIORITY);
#endif

        start_CAN_task(RCP_INPUT_PRIORITY);
        startConnectivityTask(RCP_OUTPUT_PRIORITY);
        startLoggerTaskEx(RCP_LOGGING_PRIORITY);

#if GPIO_CHANNELS > 0
        startGPIOTasks(RCP_INPUT_PRIORITY);
#endif

#if SDCARD_SUPPORT
        startFileWriterTask(RCP_OUTPUT_PRIORITY);
#endif

#if LUA_SUPPORT
        lua_task_init(RCP_LUA_PRIORITY);
#endif

#if WIFI_SUPPORT
        wifi_init_task(RCP_OUTPUT_PRIORITY, RCP_INPUT_PRIORITY);
#endif

        /* Removes this setup task from the scheduler */
        pr_info("[main] Setup Task complete!\r\n");
        vTaskDelete(NULL);
}