Update portNVIC_SYSPRI2_REG to portNVIC_SHPR3_REG (#86)

The reason for the change is that the register is called System Handler
Priority Register 3 (SHPR3).

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
diff --git a/portable/ARMv8M/non_secure/port.c b/portable/ARMv8M/non_secure/port.c
index cd0554d..b0bb8d9 100644
--- a/portable/ARMv8M/non_secure/port.c
+++ b/portable/ARMv8M/non_secure/port.c
@@ -74,7 +74,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_COUNT_FLAG_BIT       ( 1UL << 16UL )

@@ -1001,8 +1001,8 @@
 BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */

 {

     /* Make PendSV, CallSV and SysTick the same priority as the kernel. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     #if ( configENABLE_MPU == 1 )

         {

diff --git a/portable/CCS/ARM_CM3/port.c b/portable/CCS/ARM_CM3/port.c
index 9c62ab3..18dd80e 100644
--- a/portable/CCS/ARM_CM3/port.c
+++ b/portable/CCS/ARM_CM3/port.c
@@ -52,7 +52,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 /* ...then bits in the registers. */

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

@@ -275,8 +275,8 @@
     #endif /* conifgASSERT_DEFINED */

 

     /* Make PendSV and SysTick the lowest priority interrupts. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Start the timer that generates the tick ISR.  Interrupts are disabled

      * here already. */

diff --git a/portable/CCS/ARM_CM4F/port.c b/portable/CCS/ARM_CM4F/port.c
index f9c4443..cbc84e4 100644
--- a/portable/CCS/ARM_CM4F/port.c
+++ b/portable/CCS/ARM_CM4F/port.c
@@ -56,7 +56,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 /* ...then bits in the registers. */

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

@@ -294,8 +294,8 @@
     #endif /* conifgASSERT_DEFINED */

 

     /* Make PendSV and SysTick the lowest priority interrupts. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Start the timer that generates the tick ISR.  Interrupts are disabled

      * here already. */

diff --git a/portable/GCC/ARM_CM0/port.c b/portable/GCC/ARM_CM0/port.c
index 06a1766..e5b500a 100644
--- a/portable/GCC/ARM_CM0/port.c
+++ b/portable/GCC/ARM_CM0/port.c
@@ -38,7 +38,7 @@
 #define portNVIC_SYSTICK_LOAD_REG             ( *( ( volatile uint32_t * ) 0xe000e014 ) )

 #define portNVIC_SYSTICK_CURRENT_VALUE_REG    ( *( ( volatile uint32_t * ) 0xe000e018 ) )

 #define portNVIC_INT_CTRL_REG                 ( *( ( volatile uint32_t * ) 0xe000ed04 ) )

-#define portNVIC_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 #define portNVIC_SYSTICK_CLK_BIT              ( 1UL << 2UL )

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

@@ -217,8 +217,8 @@
 BaseType_t xPortStartScheduler( void )

 {

     /* Make PendSV, CallSV and SysTick the same priority as the kernel. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Start the timer that generates the tick ISR.  Interrupts are disabled

      * here already. */

diff --git a/portable/GCC/ARM_CM23/non_secure/port.c b/portable/GCC/ARM_CM23/non_secure/port.c
index cd0554d..b0bb8d9 100644
--- a/portable/GCC/ARM_CM23/non_secure/port.c
+++ b/portable/GCC/ARM_CM23/non_secure/port.c
@@ -74,7 +74,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_COUNT_FLAG_BIT       ( 1UL << 16UL )

@@ -1001,8 +1001,8 @@
 BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */

 {

     /* Make PendSV, CallSV and SysTick the same priority as the kernel. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     #if ( configENABLE_MPU == 1 )

         {

diff --git a/portable/GCC/ARM_CM23_NTZ/non_secure/port.c b/portable/GCC/ARM_CM23_NTZ/non_secure/port.c
index cd0554d..b0bb8d9 100644
--- a/portable/GCC/ARM_CM23_NTZ/non_secure/port.c
+++ b/portable/GCC/ARM_CM23_NTZ/non_secure/port.c
@@ -74,7 +74,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_COUNT_FLAG_BIT       ( 1UL << 16UL )

@@ -1001,8 +1001,8 @@
 BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */

 {

     /* Make PendSV, CallSV and SysTick the same priority as the kernel. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     #if ( configENABLE_MPU == 1 )

         {

diff --git a/portable/GCC/ARM_CM3/port.c b/portable/GCC/ARM_CM3/port.c
index 58b832b..b21fb20 100644
--- a/portable/GCC/ARM_CM3/port.c
+++ b/portable/GCC/ARM_CM3/port.c
@@ -55,7 +55,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 /* ...then bits in the registers. */

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

@@ -329,8 +329,8 @@
     #endif /* conifgASSERT_DEFINED */

 

     /* Make PendSV and SysTick the lowest priority interrupts. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Start the timer that generates the tick ISR.  Interrupts are disabled

      * here already. */

diff --git a/portable/GCC/ARM_CM33/non_secure/port.c b/portable/GCC/ARM_CM33/non_secure/port.c
index cd0554d..b0bb8d9 100644
--- a/portable/GCC/ARM_CM33/non_secure/port.c
+++ b/portable/GCC/ARM_CM33/non_secure/port.c
@@ -74,7 +74,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_COUNT_FLAG_BIT       ( 1UL << 16UL )

@@ -1001,8 +1001,8 @@
 BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */

 {

     /* Make PendSV, CallSV and SysTick the same priority as the kernel. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     #if ( configENABLE_MPU == 1 )

         {

diff --git a/portable/GCC/ARM_CM33_NTZ/non_secure/port.c b/portable/GCC/ARM_CM33_NTZ/non_secure/port.c
index cd0554d..b0bb8d9 100644
--- a/portable/GCC/ARM_CM33_NTZ/non_secure/port.c
+++ b/portable/GCC/ARM_CM33_NTZ/non_secure/port.c
@@ -74,7 +74,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_COUNT_FLAG_BIT       ( 1UL << 16UL )

@@ -1001,8 +1001,8 @@
 BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */

 {

     /* Make PendSV, CallSV and SysTick the same priority as the kernel. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     #if ( configENABLE_MPU == 1 )

         {

diff --git a/portable/GCC/ARM_CM3_MPU/port.c b/portable/GCC/ARM_CM3_MPU/port.c
index 6bd4db9..713d49b 100644
--- a/portable/GCC/ARM_CM3_MPU/port.c
+++ b/portable/GCC/ARM_CM3_MPU/port.c
@@ -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_SYSPRI2_REG                      ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

-#define portNVIC_SYSPRI1_REG                      ( *( ( volatile uint32_t * ) 0xe000ed1c ) )

+#define portNVIC_SHPR3_REG                        ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR2_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 @@
     switch( ucSVCNumber )

     {

         case portSVC_START_SCHEDULER:

-            portNVIC_SYSPRI1_REG |= portNVIC_SVC_PRI;

+            portNVIC_SHPR2_REG |= portNVIC_SVC_PRI;

             prvRestoreContextOfFirstTask();

             break;

 

@@ -439,8 +439,8 @@
     /* 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_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Configure the regions in the MPU that are common to all tasks. */

     prvSetupMPU();

diff --git a/portable/GCC/ARM_CM4F/port.c b/portable/GCC/ARM_CM4F/port.c
index e9c2e8a..43ca92f 100644
--- a/portable/GCC/ARM_CM4F/port.c
+++ b/portable/GCC/ARM_CM4F/port.c
@@ -52,7 +52,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 /* ...then bits in the registers. */

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

@@ -365,8 +365,8 @@
     #endif /* conifgASSERT_DEFINED */

 

     /* Make PendSV and SysTick the lowest priority interrupts. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Start the timer that generates the tick ISR.  Interrupts are disabled

      * here already. */

diff --git a/portable/GCC/ARM_CM4_MPU/port.c b/portable/GCC/ARM_CM4_MPU/port.c
index 59446fe..a3836f2 100644
--- a/portable/GCC/ARM_CM4_MPU/port.c
+++ b/portable/GCC/ARM_CM4_MPU/port.c
@@ -59,8 +59,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_SYSPRI2_REG                      ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

-#define portNVIC_SYSPRI1_REG                      ( *( ( volatile uint32_t * ) 0xe000ed1c ) )

+#define portNVIC_SHPR3_REG                        ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR2_REG                        ( *( ( volatile uint32_t * ) 0xe000ed1c ) )

 #define portNVIC_SYS_CTRL_STATE_REG               ( *( ( volatile uint32_t * ) 0xe000ed24 ) )

 #define portNVIC_MEM_FAULT_ENABLE                 ( 1UL << 16UL )

 

@@ -288,7 +288,7 @@
     switch( ucSVCNumber )

     {

         case portSVC_START_SCHEDULER:

-            portNVIC_SYSPRI1_REG |= portNVIC_SVC_PRI;

+            portNVIC_SHPR2_REG |= portNVIC_SVC_PRI;

             prvRestoreContextOfFirstTask();

             break;

 

@@ -457,8 +457,8 @@
     /* 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_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Configure the regions in the MPU that are common to all tasks. */

     prvSetupMPU();

diff --git a/portable/GCC/ARM_CM7/r0p1/port.c b/portable/GCC/ARM_CM7/r0p1/port.c
index b839556..d5bd008 100644
--- a/portable/GCC/ARM_CM7/r0p1/port.c
+++ b/portable/GCC/ARM_CM7/r0p1/port.c
@@ -52,7 +52,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 /* ...then bits in the registers. */

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

@@ -353,8 +353,8 @@
     #endif /* conifgASSERT_DEFINED */

 

     /* Make PendSV and SysTick the lowest priority interrupts. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Start the timer that generates the tick ISR.  Interrupts are disabled

      * here already. */

diff --git a/portable/IAR/ARM_CM0/port.c b/portable/IAR/ARM_CM0/port.c
index 6a43d18..d99af0f 100644
--- a/portable/IAR/ARM_CM0/port.c
+++ b/portable/IAR/ARM_CM0/port.c
@@ -41,7 +41,7 @@
 #define portNVIC_SYSTICK_LOAD_REG             ( *( ( volatile uint32_t * ) 0xe000e014 ) )

 #define portNVIC_SYSTICK_CURRENT_VALUE_REG    ( *( ( volatile uint32_t * ) 0xe000e018 ) )

 #define portNVIC_INT_CTRL_REG                 ( *( ( volatile uint32_t * ) 0xe000ed04 ) )

-#define portNVIC_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 #define portNVIC_SYSTICK_CLK_BIT              ( 1UL << 2UL )

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

@@ -162,8 +162,8 @@
 BaseType_t xPortStartScheduler( void )

 {

     /* Make PendSV and SysTick the lowest priority interrupts. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Start the timer that generates the tick ISR.  Interrupts are disabled

      * here already. */

diff --git a/portable/IAR/ARM_CM23/non_secure/port.c b/portable/IAR/ARM_CM23/non_secure/port.c
index cd0554d..b0bb8d9 100644
--- a/portable/IAR/ARM_CM23/non_secure/port.c
+++ b/portable/IAR/ARM_CM23/non_secure/port.c
@@ -74,7 +74,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_COUNT_FLAG_BIT       ( 1UL << 16UL )

@@ -1001,8 +1001,8 @@
 BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */

 {

     /* Make PendSV, CallSV and SysTick the same priority as the kernel. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     #if ( configENABLE_MPU == 1 )

         {

diff --git a/portable/IAR/ARM_CM23_NTZ/non_secure/port.c b/portable/IAR/ARM_CM23_NTZ/non_secure/port.c
index cd0554d..b0bb8d9 100644
--- a/portable/IAR/ARM_CM23_NTZ/non_secure/port.c
+++ b/portable/IAR/ARM_CM23_NTZ/non_secure/port.c
@@ -74,7 +74,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_COUNT_FLAG_BIT       ( 1UL << 16UL )

@@ -1001,8 +1001,8 @@
 BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */

 {

     /* Make PendSV, CallSV and SysTick the same priority as the kernel. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     #if ( configENABLE_MPU == 1 )

         {

diff --git a/portable/IAR/ARM_CM3/port.c b/portable/IAR/ARM_CM3/port.c
index 9ce3b21..5a37539 100644
--- a/portable/IAR/ARM_CM3/port.c
+++ b/portable/IAR/ARM_CM3/port.c
@@ -55,7 +55,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 /* ...then bits in the registers. */

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

@@ -278,8 +278,8 @@
     #endif /* conifgASSERT_DEFINED */

 

     /* Make PendSV and SysTick the lowest priority interrupts. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Start the timer that generates the tick ISR.  Interrupts are disabled

      * here already. */

diff --git a/portable/IAR/ARM_CM33/non_secure/port.c b/portable/IAR/ARM_CM33/non_secure/port.c
index cd0554d..b0bb8d9 100644
--- a/portable/IAR/ARM_CM33/non_secure/port.c
+++ b/portable/IAR/ARM_CM33/non_secure/port.c
@@ -74,7 +74,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_COUNT_FLAG_BIT       ( 1UL << 16UL )

@@ -1001,8 +1001,8 @@
 BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */

 {

     /* Make PendSV, CallSV and SysTick the same priority as the kernel. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     #if ( configENABLE_MPU == 1 )

         {

diff --git a/portable/IAR/ARM_CM33_NTZ/non_secure/port.c b/portable/IAR/ARM_CM33_NTZ/non_secure/port.c
index cd0554d..b0bb8d9 100644
--- a/portable/IAR/ARM_CM33_NTZ/non_secure/port.c
+++ b/portable/IAR/ARM_CM33_NTZ/non_secure/port.c
@@ -74,7 +74,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_COUNT_FLAG_BIT       ( 1UL << 16UL )

@@ -1001,8 +1001,8 @@
 BaseType_t xPortStartScheduler( void ) /* PRIVILEGED_FUNCTION */

 {

     /* Make PendSV, CallSV and SysTick the same priority as the kernel. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     #if ( configENABLE_MPU == 1 )

         {

diff --git a/portable/IAR/ARM_CM4F/port.c b/portable/IAR/ARM_CM4F/port.c
index 003f0ea..3721fc8 100644
--- a/portable/IAR/ARM_CM4F/port.c
+++ b/portable/IAR/ARM_CM4F/port.c
@@ -59,7 +59,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 /* ...then bits in the registers. */

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

@@ -309,8 +309,8 @@
     #endif /* conifgASSERT_DEFINED */

 

     /* Make PendSV and SysTick the lowest priority interrupts. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Start the timer that generates the tick ISR.  Interrupts are disabled

      * here already. */

diff --git a/portable/IAR/ARM_CM4F_MPU/port.c b/portable/IAR/ARM_CM4F_MPU/port.c
index 75362ee..7efd669 100644
--- a/portable/IAR/ARM_CM4F_MPU/port.c
+++ b/portable/IAR/ARM_CM4F_MPU/port.c
@@ -66,8 +66,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_SYSPRI2_REG                      ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

-#define portNVIC_SYSPRI1_REG                      ( *( ( volatile uint32_t * ) 0xe000ed1c ) )

+#define portNVIC_SHPR3_REG                        ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR2_REG                        ( *( ( volatile uint32_t * ) 0xe000ed1c ) )

 #define portNVIC_SYS_CTRL_STATE_REG               ( *( ( volatile uint32_t * ) 0xe000ed24 ) )

 #define portNVIC_MEM_FAULT_ENABLE                 ( 1UL << 16UL )

 

@@ -278,7 +278,7 @@
     switch( ucSVCNumber )

     {

         case portSVC_START_SCHEDULER:

-            portNVIC_SYSPRI1_REG |= portNVIC_SVC_PRI;

+            portNVIC_SHPR2_REG |= portNVIC_SVC_PRI;

             vPortRestoreContextOfFirstTask();

             break;

 

@@ -409,8 +409,8 @@
     #endif /* conifgASSERT_DEFINED */

 

     /* Make PendSV and SysTick the lowest priority interrupts. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Configure the regions in the MPU that are common to all tasks. */

     prvSetupMPU();

diff --git a/portable/IAR/ARM_CM7/r0p1/port.c b/portable/IAR/ARM_CM7/r0p1/port.c
index 6fe7894..1e45043 100644
--- a/portable/IAR/ARM_CM7/r0p1/port.c
+++ b/portable/IAR/ARM_CM7/r0p1/port.c
@@ -59,7 +59,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 /* ...then bits in the registers. */

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

@@ -297,8 +297,8 @@
     #endif /* conifgASSERT_DEFINED */

 

     /* Make PendSV and SysTick the lowest priority interrupts. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Start the timer that generates the tick ISR.  Interrupts are disabled

      * here already. */

diff --git a/portable/MikroC/ARM_CM4F/port.c b/portable/MikroC/ARM_CM4F/port.c
index b6dfd03..73b62c4 100644
--- a/portable/MikroC/ARM_CM4F/port.c
+++ b/portable/MikroC/ARM_CM4F/port.c
@@ -49,7 +49,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 /* ...then bits in the registers. */

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

@@ -360,8 +360,8 @@
     #endif /* conifgASSERT_DEFINED */

 

     /* Make PendSV and SysTick the lowest priority interrupts. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Start the timer that generates the tick ISR.  Interrupts are disabled

      * here already. */

diff --git a/portable/RVDS/ARM_CM0/port.c b/portable/RVDS/ARM_CM0/port.c
index a1e9fef..88d0b12 100644
--- a/portable/RVDS/ARM_CM0/port.c
+++ b/portable/RVDS/ARM_CM0/port.c
@@ -38,7 +38,7 @@
 #define portNVIC_SYSTICK_LOAD_REG             ( *( ( volatile uint32_t * ) 0xe000e014 ) )

 #define portNVIC_SYSTICK_CURRENT_VALUE_REG    ( *( ( volatile uint32_t * ) 0xe000e018 ) )

 #define portNVIC_INT_CTRL_REG                 ( *( ( volatile uint32_t * ) 0xe000ed04 ) )

-#define portNVIC_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 #define portNVIC_SYSTICK_CLK_BIT              ( 1UL << 2UL )

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

@@ -209,9 +209,9 @@
 BaseType_t xPortStartScheduler( void )

 {

     /* Make PendSV, CallSV and SysTick the same priority as the kernel. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

 

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Start the timer that generates the tick ISR.  Interrupts are disabled

      * here already. */

diff --git a/portable/RVDS/ARM_CM3/port.c b/portable/RVDS/ARM_CM3/port.c
index c29b98a..5ac9d2c 100644
--- a/portable/RVDS/ARM_CM3/port.c
+++ b/portable/RVDS/ARM_CM3/port.c
@@ -65,7 +65,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 /* ...then bits in the registers. */

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

@@ -326,9 +326,9 @@
     #endif /* conifgASSERT_DEFINED */

 

     /* Make PendSV and SysTick the lowest priority interrupts. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

 

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Start the timer that generates the tick ISR.  Interrupts are disabled

      * here already. */

diff --git a/portable/RVDS/ARM_CM4F/port.c b/portable/RVDS/ARM_CM4F/port.c
index e3f06b9..488e516 100644
--- a/portable/RVDS/ARM_CM4F/port.c
+++ b/portable/RVDS/ARM_CM4F/port.c
@@ -65,7 +65,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 /* ...then bits in the registers. */

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

@@ -386,8 +386,8 @@
     #endif /* conifgASSERT_DEFINED */

 

     /* Make PendSV and SysTick the lowest priority interrupts. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Start the timer that generates the tick ISR.  Interrupts are disabled

      * here already. */

diff --git a/portable/RVDS/ARM_CM4_MPU/port.c b/portable/RVDS/ARM_CM4_MPU/port.c
index a87b67a..2bf5bbd 100644
--- a/portable/RVDS/ARM_CM4_MPU/port.c
+++ b/portable/RVDS/ARM_CM4_MPU/port.c
@@ -48,8 +48,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_SYSPRI2_REG                      ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

-#define portNVIC_SYSPRI1_REG                      ( *( ( volatile uint32_t * ) 0xe000ed1c ) )

+#define portNVIC_SHPR3_REG                        ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR2_REG                        ( *( ( volatile uint32_t * ) 0xe000ed1c ) )

 #define portNVIC_SYS_CTRL_STATE_REG               ( *( ( volatile uint32_t * ) 0xe000ed24 ) )

 #define portNVIC_MEM_FAULT_ENABLE                 ( 1UL << 16UL )

 

@@ -256,7 +256,7 @@
     switch( ucSVCNumber )

     {

         case portSVC_START_SCHEDULER:

-            portNVIC_SYSPRI1_REG |= portNVIC_SVC_PRI;

+            portNVIC_SHPR2_REG |= portNVIC_SVC_PRI;

             prvRestoreContextOfFirstTask();

             break;

 

@@ -445,8 +445,8 @@
     /* 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_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Configure the regions in the MPU that are common to all tasks. */

     prvSetupMPU();

diff --git a/portable/RVDS/ARM_CM7/r0p1/port.c b/portable/RVDS/ARM_CM7/r0p1/port.c
index 02447fe..bf97b49 100644
--- a/portable/RVDS/ARM_CM7/r0p1/port.c
+++ b/portable/RVDS/ARM_CM7/r0p1/port.c
@@ -65,7 +65,7 @@
 #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_SYSPRI2_REG                  ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

+#define portNVIC_SHPR3_REG                    ( *( ( volatile uint32_t * ) 0xe000ed20 ) )

 /* ...then bits in the registers. */

 #define portNVIC_SYSTICK_INT_BIT              ( 1UL << 1UL )

 #define portNVIC_SYSTICK_ENABLE_BIT           ( 1UL << 0UL )

@@ -370,9 +370,9 @@
     #endif /* conifgASSERT_DEFINED */

 

     /* Make PendSV and SysTick the lowest priority interrupts. */

-    portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_PENDSV_PRI;

 

-    portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;

+    portNVIC_SHPR3_REG |= portNVIC_SYSTICK_PRI;

 

     /* Start the timer that generates the tick ISR.  Interrupts are disabled

      * here already. */

diff --git a/portable/Tasking/ARM_CM4F/port.c b/portable/Tasking/ARM_CM4F/port.c
index 011ad77..bbdbbea 100644
--- a/portable/Tasking/ARM_CM4F/port.c
+++ b/portable/Tasking/ARM_CM4F/port.c
@@ -36,7 +36,7 @@
 /* Constants required to manipulate the NVIC. */

 #define portNVIC_SYSTICK_CTRL       ( ( volatile uint32_t * ) 0xe000e010 )

 #define portNVIC_SYSTICK_LOAD       ( ( volatile uint32_t * ) 0xe000e014 )

-#define portNVIC_SYSPRI2            ( ( volatile uint32_t * ) 0xe000ed20 )

+#define portNVIC_SHPR3_REG          ( ( volatile uint32_t * ) 0xe000ed20 )

 #define portNVIC_SYSTICK_CLK        0x00000004

 #define portNVIC_SYSTICK_INT        0x00000002

 #define portNVIC_SYSTICK_ENABLE     0x00000001

@@ -164,8 +164,8 @@
     configASSERT( ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) );

 

     /* Make PendSV and SysTick the lowest priority interrupts. */

-    *( portNVIC_SYSPRI2 ) |= portNVIC_PENDSV_PRI;

-    *( portNVIC_SYSPRI2 ) |= portNVIC_SYSTICK_PRI;

+    *( portNVIC_SHPR3_REG ) |= portNVIC_PENDSV_PRI;

+    *( portNVIC_SHPR3_REG ) |= portNVIC_SYSTICK_PRI;

 

     /* Start the timer that generates the tick ISR.  Interrupts are disabled

      * here already. */