Skip to content
Commit 655d3cc2 authored by Carlos Stuart's avatar Carlos Stuart Committed by Anas Nashif
Browse files

lib: cmsis_rtos_v2: Default thread prioity



If an unitialized/zeroed optional attribute was passed to osThreadNew
the priority would be osThreadNone i.e. uninitialized. This causes an
ASSERT to be hit as the priority isn't valid (it is not between
osPriorityIdle and osPriorityISR).

The fix checks the passed in priority is not osPriorityNone and assigns
osPriorityNormal. This is the correct CMSIS behaviour.

The ASSERT will still be hit if the priority is invalid (<0).

Signed-off-by: default avatarCarlos Stuart <carlosstuart1970@gmail.com>
parent d47178bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment