Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. /**
  2. * Define the FreeRTOS task priorities and sizes
  3. */
  4. #define configGUI_TASK_PRIORITY ( tskIDLE_PRIORITY + 3 )
  5. #define configGUI_TASK_STK_SIZE ( 950 )
  6.  
  7. /*
  8. ** CDL Task Configurations
  9. */
  10.  
  11. #define configCDL_TASK_PRIORITY ( tskIDLE_PRIORITY + 2 )
  12. #define configCDL_TASK_STK_SIZE ( 950 )
  13.  
  14. /*
  15. ** FreeRTOS Queues
  16. */
  17.  
  18. xQueueHandle msgGuiRqst;
  19. xQueueHandle msgCdlStatus;
  20. xQueueHandle msgCdlRspnsBool;
  21. xQueueHandle msgPlatformsStatusData;
  22. xQueueHandle msgPlatformsWeightData;
  23.  
  24. int main(void)
  25. {
  26. msgGuiRqst = xQueueCreate(1, sizeof(char));
  27. msgCdlStatus = xQueueCreate(1, sizeof(char));
  28. msgCdlRspnsBool = xQueueCreate(1, sizeof(bool));
  29.  
  30. // Problem started after adding these two queues
  31. msgPlatformsStatusData = xQueueCreate(2, sizeof(bool));
  32. msgPlatformsWeightData = xQueueCreate(2, sizeof(int));
  33.  
  34. xTaskCreate(GUITask, (TASKCREATE_NAME_TYPE)"GUITask",
  35. configGUI_TASK_STK_SIZE,
  36. NULL,
  37. configGUI_TASK_PRIORITY,
  38. NULL);
  39.  
  40. xTaskCreate(CDLTask, (TASKCREATE_NAME_TYPE)"CDLTask",
  41. configCDL_TASK_STK_SIZE,
  42. NULL,
  43. configCDL_TASK_PRIORITY,
  44. NULL);
  45.  
  46. vTaskStartScheduler();
  47.  
  48.  
  49. while(1)
  50. {
  51. ;
  52. }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement