0
0
FreeRTOSprogramming~10 mins

xTaskNotify() with value 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 notify a task with a value using xTaskNotify.

FreeRTOS
xTaskNotify([1], 0x01, eSetValueWithOverwrite);
Drag options to blanks, or click blank then click option'
ANULL
BvTaskDelay
CxTaskHandle
DxTaskNotify
Attempts:
3 left
💡 Hint
Common Mistakes
Passing NULL instead of the task handle.
Using a function name instead of a task handle.
2fill in blank
medium

Complete the code to notify a task with the value 0x10 using xTaskNotify.

FreeRTOS
xTaskNotify(xTaskHandle, [1], eSetValueWithOverwrite);
Drag options to blanks, or click blank then click option'
A0x10
B0x00
C1
D0xFF
Attempts:
3 left
💡 Hint
Common Mistakes
Using 1 instead of 0x10.
Using 0xFF which is a different value.
3fill in blank
hard

Fix the error in the code to notify a task with a value using xTaskNotify.

FreeRTOS
xTaskNotify(xTaskHandle, 0x05, [1]);
Drag options to blanks, or click blank then click option'
AeSetBits
BeSetValueWithOverwrite
CeNoAction
DeIncrement
Attempts:
3 left
💡 Hint
Common Mistakes
Using eNoAction which does not set a value.
Using eSetBits which sets bits instead of value.
4fill in blank
hard

Fill both blanks to notify a task with value 0x0F using xTaskNotify and the correct notification action.

FreeRTOS
xTaskNotify([1], [2], eSetValueWithOverwrite);
Drag options to blanks, or click blank then click option'
AxTaskHandle
B0x0F
C0xF0
DNULL
Attempts:
3 left
💡 Hint
Common Mistakes
Using NULL instead of the task handle.
Using 0xF0 instead of 0x0F.
5fill in blank
hard

Fill all three blanks to notify a task with value 0xAA using xTaskNotify.

FreeRTOS
xTaskNotify([1], [2], [3]);
Drag options to blanks, or click blank then click option'
AxTaskHandle
B0xAA
CeSetValueWithOverwrite
DeNoAction
Attempts:
3 left
💡 Hint
Common Mistakes
Using eNoAction which does nothing.
Wrong value or action.
Incorrect argument order.