X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=FreeRTOS%2FDemo%2FCORTEX_M4_ATSAM4L_Atmel_Studio%2Fsrc%2FSAM4L_low_power_tick_management.c;h=d43497db17a3b89331a6dde337ee9e01bba58a91;hb=19b29b9ac426c6f5c64009809b1cde1777abb285;hp=98beefd73bfb495c8330fa530109ec41e562df8f;hpb=8571b44a8524867871519085ec0f9b72a48436a8;p=freertos diff --git a/FreeRTOS/Demo/CORTEX_M4_ATSAM4L_Atmel_Studio/src/SAM4L_low_power_tick_management.c b/FreeRTOS/Demo/CORTEX_M4_ATSAM4L_Atmel_Studio/src/SAM4L_low_power_tick_management.c index 98beefd73..d43497db1 100644 --- a/FreeRTOS/Demo/CORTEX_M4_ATSAM4L_Atmel_Studio/src/SAM4L_low_power_tick_management.c +++ b/FreeRTOS/Demo/CORTEX_M4_ATSAM4L_Atmel_Studio/src/SAM4L_low_power_tick_management.c @@ -1,5 +1,5 @@ /* - FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. + FreeRTOS V8.0.0 - Copyright (C) 2014 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. @@ -121,7 +121,7 @@ static const uint32_t ulAlarmValueForOneTick = ( configSYSTICK_CLOCK_HZ / config /* Holds the maximum number of ticks that can be suppressed - which is basically how far into the future an interrupt can be generated. Set during initialisation. */ -static portTickType xMaximumPossibleSuppressedTicks = 0; +static TickType_t xMaximumPossibleSuppressedTicks = 0; /* Flag set from the tick interrupt to allow the sleep processing to know if sleep mode was exited because of an AST interrupt or a different interrupt. */ @@ -250,11 +250,11 @@ static void prvEnableAST( void ) defined in the FreeRTOS Cortex-M3 port layer with a version that manages the asynchronous timer (AST), as the tick is generated from the low power AST and not the SysTick as would normally be the case on a Cortex-M. */ -void vPortSuppressTicksAndSleep( portTickType xExpectedIdleTime ) +void vPortSuppressTicksAndSleep( TickType_t xExpectedIdleTime ) { uint32_t ulAlarmValue, ulCompleteTickPeriods, ulInterruptStatus; eSleepModeStatus eSleepAction; -portTickType xModifiableIdleTime; +TickType_t xModifiableIdleTime; enum sleepmgr_mode xSleepMode; /* THIS FUNCTION IS CALLED WITH THE SCHEDULER SUSPENDED. */