]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c
Minor updates to demo projects to ensure correct building with V8 rc1.
[freertos] / FreeRTOS / Source / portable / GCC / ARM_CM4F / port.c
index a75cebfd1d953208e9bfb72b9d1746c06c2e5665..fff011dcf8f2a8ed843b9ae76528ec6124bed429 100644 (file)
@@ -300,7 +300,7 @@ BaseType_t xPortStartScheduler( void )
        #if( configASSERT_DEFINED == 1 )\r
        {\r
                volatile uint32_t ulOriginalPriority;\r
-               volatile int8_t * const pcFirstUserPriorityRegister = ( volatile int8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );\r
+               volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );\r
                volatile uint8_t ucMaxPriorityValue;\r
 \r
                /* Determine the maximum priority from which ISR safe FreeRTOS API\r
@@ -309,14 +309,14 @@ BaseType_t xPortStartScheduler( void )
                ensure interrupt entry is as fast and simple as possible.\r
 \r
                Save the interrupt priority value that is about to be clobbered. */\r
-               ulOriginalPriority = *pcFirstUserPriorityRegister;\r
+               ulOriginalPriority = *pucFirstUserPriorityRegister;\r
 \r
                /* Determine the number of priority bits available.  First write to all\r
                possible bits. */\r
-               *pcFirstUserPriorityRegister = portMAX_8_BIT_VALUE;\r
+               *pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;\r
 \r
                /* Read the value back to see how many bits stuck. */\r
-               ucMaxPriorityValue = *pcFirstUserPriorityRegister;\r
+               ucMaxPriorityValue = *pucFirstUserPriorityRegister;\r
 \r
                /* Use the same mask on the maximum system call priority. */\r
                ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;\r
@@ -337,7 +337,7 @@ BaseType_t xPortStartScheduler( void )
 \r
                /* Restore the clobbered interrupt priority register to its original\r
                value. */\r
-               *pcFirstUserPriorityRegister = ulOriginalPriority;\r
+               *pucFirstUserPriorityRegister = ulOriginalPriority;\r
        }\r
        #endif /* conifgASSERT_DEFINED */\r
 \r