zephyr/lib/cmsis_rtos_v2
Carlos Stuart 655d3cc2b0 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: Carlos Stuart <carlosstuart1970@gmail.com>
2019-02-06 10:20:17 -05:00
..
CMakeLists.txt
event_flags.c lib: cmsis_rtos_v2: Default name if name is NULL 2019-02-06 10:20:17 -05:00
Kconfig
kernel.c
mempool.c lib: cmsis_rtos_v2: Default name if name is NULL 2019-02-06 10:20:17 -05:00
msgq.c lib: cmsis_rtos_v2: Default name if name is NULL 2019-02-06 10:20:17 -05:00
mutex.c lib: cmsis_rtos_v2: Default name if name is NULL 2019-02-06 10:20:17 -05:00
semaphore.c lib: cmsis_rtos_v2: Default name if name is NULL 2019-02-06 10:20:17 -05:00
thread_flags.c
thread.c lib: cmsis_rtos_v2: Default thread prioity 2019-02-06 10:20:17 -05:00
timer.c lib: cmsis_rtos_v2: Default name if name is NULL 2019-02-06 10:20:17 -05:00
wrapper.h