mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -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
|
@ -287,19 +287,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
|
||||
|
||||
|
|
|
@ -306,19 +306,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
|
||||
|
||||
|
|
|
@ -330,19 +330,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
|
||||
|
||||
|
|
|
@ -452,21 +452,25 @@ 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
|
||||
|
||||
/* Shift the priority group value back to its position within the AIRCR
|
||||
|
|
|
@ -373,19 +373,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
|
||||
|
||||
|
|
|
@ -495,21 +495,25 @@ 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
|
||||
|
||||
/* Shift the priority group value back to its position within the AIRCR
|
||||
|
|
|
@ -361,19 +361,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
|
||||
|
||||
|
|
|
@ -279,19 +279,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
|
||||
|
||||
|
|
|
@ -317,19 +317,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
|
||||
|
||||
|
|
|
@ -431,19 +431,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
|
||||
|
||||
|
|
|
@ -305,19 +305,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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -332,19 +332,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
|
||||
|
||||
|
|
|
@ -398,19 +398,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
|
||||
|
||||
|
|
|
@ -491,19 +491,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
|
||||
|
||||
|
|
|
@ -382,19 +382,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…
Reference in a new issue