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 lib/cmsis_rtos_v2: Implement support for Thread Flags APIs 2018-12-20 12:23:22 +01:00
event_flags.c lib: cmsis_rtos_v2: Default name if name is NULL 2019-02-06 10:20:17 -05:00
Kconfig lib: cmsis_rtos_v2: Dynamic thread stacks 2019-02-06 10:20:17 -05:00
kernel.c lib: cmsis_rtos_v2: Uncrustify source files 2019-02-06 10:20:17 -05:00
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 lib: cmsis_rtos_v2: Uncrustify source files 2019-02-06 10:20:17 -05:00
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 lib: cmsis_rtos_v2: Dynamic memory pools 2019-02-06 10:20:17 -05:00