0
0
FreeRTOSprogramming~10 mins

Task function signature in FreeRTOS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to declare a FreeRTOS task function with the correct return type.

FreeRTOS
[1] vTaskCode(void *pvParameters) {
    // Task code here
}
Drag options to blanks, or click blank then click option'
AvTaskCode
BTaskFunction_t
CTaskHandle_t
Dvoid
Attempts:
3 left
💡 Hint
Common Mistakes
Using a non-void return type for the task function.
2fill in blank
medium

Complete the code to declare a FreeRTOS task function with the correct parameter type.

FreeRTOS
void vTaskCode([1] pvParameters) {
    // Task code here
}
Drag options to blanks, or click blank then click option'
Aint
BTaskHandle_t
Cvoid *
Dchar *
Attempts:
3 left
💡 Hint
Common Mistakes
Using a specific pointer type instead of void *.
3fill in blank
hard

Fix the error in the task function signature to match FreeRTOS requirements.

FreeRTOS
[1] vTaskCode(void *pvParameters) {
    // Task code here
}
Drag options to blanks, or click blank then click option'
Avoid
BTaskFunction_t
CTaskHandle_t
DvTaskCode
Attempts:
3 left
💡 Hint
Common Mistakes
Using int as return type and returning a value.
4fill in blank
hard

Fill both blanks to complete the FreeRTOS task function signature correctly.

FreeRTOS
[1] [2](void *pvParameters) {
    // Task code here
}
Drag options to blanks, or click blank then click option'
Avoid
BvTaskCode
CTaskFunction_t
DTaskHandle_t
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect return type or function name.
5fill in blank
hard

Fill all three blanks to complete the FreeRTOS task function signature and parameter correctly.

FreeRTOS
[1] [2]([3] pvParameters) {
    // Task code here
}
Drag options to blanks, or click blank then click option'
Avoid
BvTaskCode
Cvoid *
DTaskFunction_t
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong return type, function name, or parameter type.