Use CMSIS wrapped asm function in "vPortValidateInterruptPriority"

This commit is contained in:
paperchalice 2020-03-27 12:48:01 +08:00
parent e27b56d4be
commit 752a2506b2

View file

@ -709,7 +709,7 @@ static void vPortEnableVFP( void )
uint8_t ucCurrentPriority; uint8_t ucCurrentPriority;
/* Obtain the number of the currently executing interrupt. */ /* Obtain the number of the currently executing interrupt. */
__asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" ); ulCurrentInterrupt = __get_IPSR();
/* Is the interrupt number a user defined interrupt? */ /* Is the interrupt number a user defined interrupt? */
if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER ) if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )