mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 18:18:32 -04:00
ARMv7M: Adjust implemented priority bit assertions (#665)
Adjust assertions related to the CMSIS __NVIC_PRIO_BITS and FreeRTOS configPRIO_BITS configuration macros such that these macros specify the minimum number of implemented priority bits supported by a config build rather than the exact number of implemented priority bits. Related to Qemu issue #1122
This commit is contained in:
parent
aa987a3443
commit
686b6e62eb
16 changed files with 200 additions and 136 deletions
|
@ -367,19 +367,23 @@ BaseType_t xPortStartScheduler( void )
|
|||
|
||||
#ifdef __NVIC_PRIO_BITS
|
||||
{
|
||||
/* Check the CMSIS configuration that defines the number of
|
||||
* priority bits matches the number of priority bits actually queried
|
||||
* from the hardware. */
|
||||
configASSERT( ulImplementedPrioBits == __NVIC_PRIO_BITS );
|
||||
/*
|
||||
* Check that the number of implemented priority bits queried from
|
||||
* hardware is at least as many as specified in the CMSIS
|
||||
* __NVIC_PRIO_BITS configuration macro.
|
||||
*/
|
||||
configASSERT( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef configPRIO_BITS
|
||||
{
|
||||
/* Check the FreeRTOS configuration that defines the number of
|
||||
* priority bits matches the number of priority bits actually queried
|
||||
* from the hardware. */
|
||||
configASSERT( ulImplementedPrioBits == configPRIO_BITS );
|
||||
/*
|
||||
* Check that the number of implemented priority bits queried from
|
||||
* hardware is at least as many as specified in the FreeRTOS
|
||||
* configPRIO_BITS configuration macro.
|
||||
*/
|
||||
configASSERT( ulImplementedPrioBits >= configPRIO_BITS );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue