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
|
#ifdef __NVIC_PRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the CMSIS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the CMSIS
|
||||||
configASSERT( ulImplementedPrioBits == __NVIC_PRIO_BITS );
|
* __NVIC_PRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef configPRIO_BITS
|
#ifdef configPRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the FreeRTOS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the FreeRTOS
|
||||||
configASSERT( ulImplementedPrioBits == configPRIO_BITS );
|
* configPRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= configPRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -306,19 +306,23 @@ BaseType_t xPortStartScheduler( void )
|
||||||
|
|
||||||
#ifdef __NVIC_PRIO_BITS
|
#ifdef __NVIC_PRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the CMSIS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the CMSIS
|
||||||
configASSERT( ulImplementedPrioBits == __NVIC_PRIO_BITS );
|
* __NVIC_PRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef configPRIO_BITS
|
#ifdef configPRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the FreeRTOS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the FreeRTOS
|
||||||
configASSERT( ulImplementedPrioBits == configPRIO_BITS );
|
* configPRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= configPRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -330,19 +330,23 @@ BaseType_t xPortStartScheduler( void )
|
||||||
|
|
||||||
#ifdef __NVIC_PRIO_BITS
|
#ifdef __NVIC_PRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the CMSIS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the CMSIS
|
||||||
configASSERT( ulImplementedPrioBits == __NVIC_PRIO_BITS );
|
* __NVIC_PRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef configPRIO_BITS
|
#ifdef configPRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the FreeRTOS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the FreeRTOS
|
||||||
configASSERT( ulImplementedPrioBits == configPRIO_BITS );
|
* configPRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= configPRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -453,19 +453,23 @@ BaseType_t xPortStartScheduler( void )
|
||||||
|
|
||||||
#ifdef __NVIC_PRIO_BITS
|
#ifdef __NVIC_PRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the CMSIS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the CMSIS
|
||||||
configASSERT( ulImplementedPrioBits == __NVIC_PRIO_BITS );
|
* __NVIC_PRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef configPRIO_BITS
|
#ifdef configPRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the FreeRTOS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the FreeRTOS
|
||||||
configASSERT( ulImplementedPrioBits == configPRIO_BITS );
|
* configPRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= configPRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -373,19 +373,23 @@ BaseType_t xPortStartScheduler( void )
|
||||||
|
|
||||||
#ifdef __NVIC_PRIO_BITS
|
#ifdef __NVIC_PRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the CMSIS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the CMSIS
|
||||||
configASSERT( ulImplementedPrioBits == __NVIC_PRIO_BITS );
|
* __NVIC_PRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef configPRIO_BITS
|
#ifdef configPRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the FreeRTOS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the FreeRTOS
|
||||||
configASSERT( ulImplementedPrioBits == configPRIO_BITS );
|
* configPRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= configPRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -496,19 +496,23 @@ BaseType_t xPortStartScheduler( void )
|
||||||
|
|
||||||
#ifdef __NVIC_PRIO_BITS
|
#ifdef __NVIC_PRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the CMSIS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried
|
||||||
* from the hardware. */
|
* from hardware is at least as many as specified in the
|
||||||
configASSERT( ulImplementedPrioBits == __NVIC_PRIO_BITS );
|
* CMSIS __NVIC_PRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef configPRIO_BITS
|
#ifdef configPRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the FreeRTOS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried
|
||||||
* from the hardware. */
|
* from hardware is at least as many as specified in the
|
||||||
configASSERT( ulImplementedPrioBits == configPRIO_BITS );
|
* FreeRTOS configPRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= configPRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -361,19 +361,23 @@ BaseType_t xPortStartScheduler( void )
|
||||||
|
|
||||||
#ifdef __NVIC_PRIO_BITS
|
#ifdef __NVIC_PRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the CMSIS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the CMSIS
|
||||||
configASSERT( ulImplementedPrioBits == __NVIC_PRIO_BITS );
|
* __NVIC_PRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef configPRIO_BITS
|
#ifdef configPRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the FreeRTOS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the FreeRTOS
|
||||||
configASSERT( ulImplementedPrioBits == configPRIO_BITS );
|
* configPRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= configPRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -279,19 +279,23 @@ BaseType_t xPortStartScheduler( void )
|
||||||
|
|
||||||
#ifdef __NVIC_PRIO_BITS
|
#ifdef __NVIC_PRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the CMSIS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the CMSIS
|
||||||
configASSERT( ulImplementedPrioBits == __NVIC_PRIO_BITS );
|
* __NVIC_PRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef configPRIO_BITS
|
#ifdef configPRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the FreeRTOS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the FreeRTOS
|
||||||
configASSERT( ulImplementedPrioBits == configPRIO_BITS );
|
* configPRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= configPRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -317,19 +317,23 @@ BaseType_t xPortStartScheduler( void )
|
||||||
|
|
||||||
#ifdef __NVIC_PRIO_BITS
|
#ifdef __NVIC_PRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the CMSIS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the CMSIS
|
||||||
configASSERT( ulImplementedPrioBits == __NVIC_PRIO_BITS );
|
* __NVIC_PRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef configPRIO_BITS
|
#ifdef configPRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the FreeRTOS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the FreeRTOS
|
||||||
configASSERT( ulImplementedPrioBits == configPRIO_BITS );
|
* configPRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= configPRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -431,19 +431,23 @@ BaseType_t xPortStartScheduler( void )
|
||||||
|
|
||||||
#ifdef __NVIC_PRIO_BITS
|
#ifdef __NVIC_PRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the CMSIS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the CMSIS
|
||||||
configASSERT( ulImplementedPrioBits == __NVIC_PRIO_BITS );
|
* __NVIC_PRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef configPRIO_BITS
|
#ifdef configPRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the FreeRTOS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the FreeRTOS
|
||||||
configASSERT( ulImplementedPrioBits == configPRIO_BITS );
|
* configPRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= configPRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -305,19 +305,23 @@ BaseType_t xPortStartScheduler( void )
|
||||||
|
|
||||||
#ifdef __NVIC_PRIO_BITS
|
#ifdef __NVIC_PRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the CMSIS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the CMSIS
|
||||||
configASSERT( ulImplementedPrioBits == __NVIC_PRIO_BITS );
|
* __NVIC_PRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef configPRIO_BITS
|
#ifdef configPRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the FreeRTOS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the FreeRTOS
|
||||||
configASSERT( ulImplementedPrioBits == configPRIO_BITS );
|
* configPRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= configPRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -367,19 +367,23 @@ BaseType_t xPortStartScheduler( void )
|
||||||
|
|
||||||
#ifdef __NVIC_PRIO_BITS
|
#ifdef __NVIC_PRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the CMSIS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the CMSIS
|
||||||
configASSERT( ulImplementedPrioBits == __NVIC_PRIO_BITS );
|
* __NVIC_PRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef configPRIO_BITS
|
#ifdef configPRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the FreeRTOS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the FreeRTOS
|
||||||
configASSERT( ulImplementedPrioBits == configPRIO_BITS );
|
* configPRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= configPRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -332,19 +332,23 @@ BaseType_t xPortStartScheduler( void )
|
||||||
|
|
||||||
#ifdef __NVIC_PRIO_BITS
|
#ifdef __NVIC_PRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the CMSIS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the CMSIS
|
||||||
configASSERT( ulImplementedPrioBits == __NVIC_PRIO_BITS );
|
* __NVIC_PRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef configPRIO_BITS
|
#ifdef configPRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the FreeRTOS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the FreeRTOS
|
||||||
configASSERT( ulImplementedPrioBits == configPRIO_BITS );
|
* configPRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= configPRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -398,19 +398,23 @@ BaseType_t xPortStartScheduler( void )
|
||||||
|
|
||||||
#ifdef __NVIC_PRIO_BITS
|
#ifdef __NVIC_PRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the CMSIS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the CMSIS
|
||||||
configASSERT( ulImplementedPrioBits == __NVIC_PRIO_BITS );
|
* __NVIC_PRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef configPRIO_BITS
|
#ifdef configPRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the FreeRTOS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the FreeRTOS
|
||||||
configASSERT( ulImplementedPrioBits == configPRIO_BITS );
|
* configPRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= configPRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -491,19 +491,23 @@ BaseType_t xPortStartScheduler( void )
|
||||||
|
|
||||||
#ifdef __NVIC_PRIO_BITS
|
#ifdef __NVIC_PRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the CMSIS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the CMSIS
|
||||||
configASSERT( ulImplementedPrioBits == __NVIC_PRIO_BITS );
|
* __NVIC_PRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef configPRIO_BITS
|
#ifdef configPRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the FreeRTOS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the FreeRTOS
|
||||||
configASSERT( ulImplementedPrioBits == configPRIO_BITS );
|
* configPRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= configPRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -382,19 +382,23 @@ BaseType_t xPortStartScheduler( void )
|
||||||
|
|
||||||
#ifdef __NVIC_PRIO_BITS
|
#ifdef __NVIC_PRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the CMSIS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the CMSIS
|
||||||
configASSERT( ulImplementedPrioBits == __NVIC_PRIO_BITS );
|
* __NVIC_PRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= __NVIC_PRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef configPRIO_BITS
|
#ifdef configPRIO_BITS
|
||||||
{
|
{
|
||||||
/* Check the FreeRTOS configuration that defines the number of
|
/*
|
||||||
* priority bits matches the number of priority bits actually queried
|
* Check that the number of implemented priority bits queried from
|
||||||
* from the hardware. */
|
* hardware is at least as many as specified in the FreeRTOS
|
||||||
configASSERT( ulImplementedPrioBits == configPRIO_BITS );
|
* configPRIO_BITS configuration macro.
|
||||||
|
*/
|
||||||
|
configASSERT( ulImplementedPrioBits >= configPRIO_BITS );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue