]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/MPLAB/PIC32MZ/port.c
Prepare for a FreeRTOS V9 release candidate:
[freertos] / FreeRTOS / Source / portable / MPLAB / PIC32MZ / port.c
index 4ad6df9214cf434f04207022d695178f4ce46db9..731e178223408660f34bfd74d6fcc4deff02c57f 100644 (file)
@@ -226,8 +226,8 @@ StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t px
 \r
        *pxTopOfStack = (StackType_t) pxCode;           /* CP0_EPC */\r
        pxTopOfStack--;\r
-    \r
-       *pxTopOfStack = (StackType_t) 0x00000000;       /* DSPControl */    \r
+\r
+       *pxTopOfStack = (StackType_t) 0x00000000;       /* DSPControl */\r
        pxTopOfStack -= 7;                                              /* Includes space for AC1 - AC3. */\r
 \r
        *pxTopOfStack = (StackType_t) portTASK_RETURN_ADDRESS;  /* ra */\r
@@ -237,7 +237,7 @@ StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t px
        pxTopOfStack -= 15;\r
 \r
        *pxTopOfStack = (StackType_t) pdFALSE; /*by default disable FPU context save on parts with FPU */\r
-    \r
+\r
        return pxTopOfStack;\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -267,7 +267,7 @@ static void prvTaskExitError( void )
  */\r
 __attribute__(( weak )) void vApplicationSetupTickTimerInterrupt( void )\r
 {\r
-const uint32_t ulCompareMatch = ( (configPERIPHERAL_CLOCK_HZ / portTIMER_PRESCALE) / configTICK_RATE_HZ ) - 1;\r
+const uint32_t ulCompareMatch = ( (configPERIPHERAL_CLOCK_HZ / portTIMER_PRESCALE) / configTICK_RATE_HZ ) - 1UL;\r
 \r
        T1CON = 0x0000;\r
        T1CONbits.TCKPS = portPRESCALE_BITS;\r
@@ -388,14 +388,14 @@ void vPortClearInterruptMaskFromISR( UBaseType_t uxSavedStatusRegister )
        extern void vPortInitialiseFPSCR( uint32_t uxFPSCRInit );\r
 \r
                portENTER_CRITICAL();\r
-    \r
+\r
                /* Initialise the floating point status register. */\r
-               vPortInitialiseFPSCR(portINITIAL_FPSCR);  \r
-    \r
+               vPortInitialiseFPSCR(portINITIAL_FPSCR);\r
+\r
                /* A task is registering the fact that it needs a FPU context. Set the\r
                FPU flag (saved as part of the task context). */\r
                ulTaskHasFPUContext = pdTRUE;\r
-    \r
+\r
                portEXIT_CRITICAL();\r
        }\r
 \r