mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Tidy up the comments and use of static function prototypes in the SAM4L_low_power_tick_management.c implementation.
This commit is contained in:
parent
3fbee4f0a8
commit
2e5d812022
|
@ -116,6 +116,13 @@ within the Cortex-M core itself. */
|
||||||
*/
|
*/
|
||||||
void AST_ALARM_Handler(void);
|
void AST_ALARM_Handler(void);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Functions that disable and enable the AST respectively, not returning until
|
||||||
|
* the operation is known to have taken effect.
|
||||||
|
*/
|
||||||
|
static void prvDisableAST( void );
|
||||||
|
static void prvEnableAST( void );
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/* Calculate how many clock increments make up a single tick period. */
|
/* Calculate how many clock increments make up a single tick period. */
|
||||||
|
@ -175,8 +182,8 @@ void AST_ALARM_Handler(void)
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/* Override the default definition of vPortSetupTimerInterrupt() that is weakly
|
/* Override the default definition of vPortSetupTimerInterrupt() that is weakly
|
||||||
defined in the FreeRTOS Cortex-M3 port layer layer with a version that
|
defined in the FreeRTOS Cortex-M3 port layer with a version that configures the
|
||||||
configures the asynchronous timer (AST) to generate the tick interrupt. */
|
asynchronous timer (AST) to generate the tick interrupt. */
|
||||||
void vPortSetupTimerInterrupt( void )
|
void vPortSetupTimerInterrupt( void )
|
||||||
{
|
{
|
||||||
struct ast_config ast_conf;
|
struct ast_config ast_conf;
|
||||||
|
@ -226,7 +233,7 @@ struct ast_config ast_conf;
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
void prvDisableAST( void )
|
static void prvDisableAST( void )
|
||||||
{
|
{
|
||||||
while( ast_is_busy( AST ) )
|
while( ast_is_busy( AST ) )
|
||||||
{
|
{
|
||||||
|
@ -240,7 +247,7 @@ void prvDisableAST( void )
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
void prvEnableAST( void )
|
static void prvEnableAST( void )
|
||||||
{
|
{
|
||||||
while( ast_is_busy( AST ) )
|
while( ast_is_busy( AST ) )
|
||||||
{
|
{
|
||||||
|
@ -255,9 +262,9 @@ void prvEnableAST( void )
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
/* Override the default definition of vPortSuppressTicksAndSleep() that is weakly
|
/* Override the default definition of vPortSuppressTicksAndSleep() that is weakly
|
||||||
defined in the FreeRTOS Cortex-M3 port layer layer with a version that manages
|
defined in the FreeRTOS Cortex-M3 port layet with a version that manages the
|
||||||
the asynchronous timer (AST), as the tick is generated from the low power AST
|
asynchronous timer (AST), as the tick is generated from the low power AST and
|
||||||
and not the SysTick as would normally be the case on a Cortex-M. */
|
not the SysTick as would normally be the case on a Cortex-M. */
|
||||||
void vPortSuppressTicksAndSleep( portTickType xExpectedIdleTime )
|
void vPortSuppressTicksAndSleep( portTickType xExpectedIdleTime )
|
||||||
{
|
{
|
||||||
uint32_t ulAlarmValue, ulCompleteTickPeriods;
|
uint32_t ulAlarmValue, ulCompleteTickPeriods;
|
||||||
|
|
Loading…
Reference in a new issue