void demo(void *arg)
{
- uint64_t waiting_time = *(int *)arg * 100000000;
- rt_task_set_periodic(NULL, TM_NOW, waiting_time);
- rt_printf("Waiting time: %d\n", waiting_time);
+ rt_task_set_periodic(NULL, TM_NOW, *(unsigned long long *)arg);
+ rt_printf("%llu\n", *(unsigned long long *)arg);
RT_TASK *curtask;
RT_TASK_INFO curtaskinfo;
curtask=rt_task_self();
rt_task_create(&task2, "t2", 0, 50, 0);
rt_task_create(&task3, "t3", 0, 50, 0);
- int num1 = 1;
- int num2 = 2;
- int num3 = 3;
+ unsigned long long num1 = 1000000000LLU;
+ unsigned long long num2 = 2000000000LLU;
+ unsigned long long num3 = 3000000000LLU;
rt_task_start(&task1, &demo, (void *)&num1);
rt_task_start(&task2, &demo, (void *)&num2);