mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-01 08:54:14 -04:00
Update comments in Atmel Studio CreateProjectDirectoryStructure.bat files to remove references to replace references to Eclipse with references to Atmel Studio.
Update the tickless idle implementations that use up counters for tick interrupt generate to ensure they remain in low power mode for the desired time instead of one tick less than the desired time.
This commit is contained in:
parent
e08966c7e8
commit
fb9662009a
7 changed files with 33 additions and 56 deletions
|
@ -580,10 +580,8 @@ static void prvSetupTimerInterrupt( void )
|
|||
}
|
||||
|
||||
/* Calculate the reload value required to wait xExpectedIdleTime tick
|
||||
periods. -1 is used because this code will execute part way through
|
||||
one of the tick periods, and the fraction of a tick period is accounted
|
||||
for later. */
|
||||
ulMatchValue = ( ulMatchValueForOneTick * ( xExpectedIdleTime - 1UL ) );
|
||||
periods. */
|
||||
ulMatchValue = ulMatchValueForOneTick * xExpectedIdleTime;
|
||||
if( ulMatchValue > ulStoppedTimerCompensation )
|
||||
{
|
||||
/* Compensate for the fact that the CMT is going to be stopped
|
||||
|
|
|
@ -424,10 +424,8 @@ static void prvSetupTimerInterrupt( void )
|
|||
}
|
||||
|
||||
/* Calculate the reload value required to wait xExpectedIdleTime tick
|
||||
periods. -1 is used because this code will execute part way through
|
||||
one of the tick periods, and the fraction of a tick period is accounted
|
||||
for later. */
|
||||
ulMatchValue = ( ulMatchValueForOneTick * ( xExpectedIdleTime - 1UL ) );
|
||||
periods. */
|
||||
ulMatchValue = ulMatchValueForOneTick * xExpectedIdleTime;
|
||||
if( ulMatchValue > ulStoppedTimerCompensation )
|
||||
{
|
||||
/* Compensate for the fact that the CMT is going to be stopped
|
||||
|
|
|
@ -554,10 +554,8 @@ static void prvSetupTimerInterrupt( void )
|
|||
}
|
||||
|
||||
/* Calculate the reload value required to wait xExpectedIdleTime tick
|
||||
periods. -1 is used because this code will execute part way through
|
||||
one of the tick periods, and the fraction of a tick period is accounted
|
||||
for later. */
|
||||
ulMatchValue = ( ulMatchValueForOneTick * ( xExpectedIdleTime - 1UL ) );
|
||||
periods. */
|
||||
ulMatchValue = ulMatchValueForOneTick * xExpectedIdleTime;
|
||||
if( ulMatchValue > ulStoppedTimerCompensation )
|
||||
{
|
||||
/* Compensate for the fact that the CMT is going to be stopped
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue