@ -55,8 +55,8 @@
# define portNVIC_SYSTICK_CTRL_REG ( *( ( volatile uint32_t * ) 0xe000e010 ) )
# define portNVIC_SYSTICK_LOAD_REG ( *( ( volatile uint32_t * ) 0xe000e014 ) )
# define portNVIC_SYSTICK_CURRENT_VALUE_REG ( *( ( volatile uint32_t * ) 0xe000e018 ) )
# define portNVIC_S YSPRI2_REG ( *( ( volatile uint32_t * ) 0xe000ed20 ) )
# define portNVIC_S YSPRI1_REG ( *( ( volatile uint32_t * ) 0xe000ed1c ) )
# define portNVIC_S HPR3_REG ( *( ( volatile uint32_t * ) 0xe000ed20 ) )
# define portNVIC_S HPR2_REG ( *( ( volatile uint32_t * ) 0xe000ed1c ) )
# define portNVIC_SYS_CTRL_STATE_REG ( *( ( volatile uint32_t * ) 0xe000ed24 ) )
# define portNVIC_MEM_FAULT_ENABLE ( 1UL << 16UL )
@ -268,7 +268,7 @@ static void prvSVCHandler( uint32_t * pulParam )
switch ( ucSVCNumber )
{
case portSVC_START_SCHEDULER :
portNVIC_S YSPRI1 _REG | = portNVIC_SVC_PRI ;
portNVIC_S HPR2 _REG | = portNVIC_SVC_PRI ;
prvRestoreContextOfFirstTask ( ) ;
break ;
@ -439,8 +439,8 @@ BaseType_t xPortStartScheduler( void )
/* Make PendSV and SysTick the same priority as the kernel, and the SVC
* handler higher priority so it can be used to exit a critical section ( where
* lower priorities are masked ) . */
portNVIC_S YSPRI2 _REG | = portNVIC_PENDSV_PRI ;
portNVIC_S YSPRI2 _REG | = portNVIC_SYSTICK_PRI ;
portNVIC_S HPR3 _REG | = portNVIC_PENDSV_PRI ;
portNVIC_S HPR3 _REG | = portNVIC_SYSTICK_PRI ;
/* Configure the regions in the MPU that are common to all tasks. */
prvSetupMPU ( ) ;