Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Define the FreeRTOS task priorities and sizes
- */
- #define configGUI_TASK_PRIORITY ( tskIDLE_PRIORITY + 3 )
- #define configGUI_TASK_STK_SIZE ( 950 )
- /*
- ** CDL Task Configurations
- */
- #define configCDL_TASK_PRIORITY ( tskIDLE_PRIORITY + 2 )
- #define configCDL_TASK_STK_SIZE ( 950 )
- /*
- ** FreeRTOS Queues
- */
- xQueueHandle msgGuiRqst;
- xQueueHandle msgCdlStatus;
- xQueueHandle msgCdlRspnsBool;
- xQueueHandle msgPlatformsStatusData;
- xQueueHandle msgPlatformsWeightData;
- int main(void)
- {
- msgGuiRqst = xQueueCreate(1, sizeof(char));
- msgCdlStatus = xQueueCreate(1, sizeof(char));
- msgCdlRspnsBool = xQueueCreate(1, sizeof(bool));
- // Problem started after adding these two queues
- msgPlatformsStatusData = xQueueCreate(2, sizeof(bool));
- msgPlatformsWeightData = xQueueCreate(2, sizeof(int));
- xTaskCreate(GUITask, (TASKCREATE_NAME_TYPE)"GUITask",
- configGUI_TASK_STK_SIZE,
- NULL,
- configGUI_TASK_PRIORITY,
- NULL);
- xTaskCreate(CDLTask, (TASKCREATE_NAME_TYPE)"CDLTask",
- configCDL_TASK_STK_SIZE,
- NULL,
- configCDL_TASK_PRIORITY,
- NULL);
- vTaskStartScheduler();
- while(1)
- {
- ;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement