Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void vDataGeneratingTask(void *pvParameters);
- [...]
- xTaskCreate(vDataGeneratingTask, "DataGen", configMINIMAL_STACK_SIZE, NULL, 1, NULL );
- [...]
- void vDataGeneratingTask(void *pvParameters)
- {
- int data;
- while(1)
- {
- // a simple idea of generating non-static int data (this is what I neeed), probably will user rand() in the future
- data++;
- vTaskDelay(3000);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement