FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [May 2008 Threads] vTaskSuspend & vTaskResumePosted by Dragie on May 25, 2008 heej all,
basicly i am trying to make 2 tasks. task 2 van suspend task 1 and when task 2 done with what he does resume him again. i tryed it like this:
xTaskHandle xTest;
int main(void) { xTaskCreate(vTask1, "Task1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIOTIY+1, &xTest); xTaskCreate(vTask2, "Task2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIOTIY+2, (xTaskHandle *) NULL); vTaskScheduler(); }
void vTask1(void * pvParameters) { .... }
void vTask1(void * pvParameters) { vTaskSuspend(xTest); .... vTaskResume(xTest); }
it says undefined reference to vTaskSuspend. and it says undefined reference to vTaskResume.
also tried:
void vTask1(void * pvParameters) { vTaskSuspend(xTest vTask1); .... vTaskResume(xTest vTask1); }
what is going wrong??
grtz
dragie
RE: vTaskSuspend & vTaskResumePosted by Dragie on May 25, 2008 *close* it sudenly started to work when i did a make clean :S.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|