From 948940215f63c3c8e4af0bcd655247adce7e43fa Mon Sep 17 00:00:00 2001 From: richardbarry Date: Thu, 6 Jun 2013 11:19:32 +0000 Subject: [PATCH] Tidy up the comments and use of static function prototypes in the SAM4L_low_power_tick_management.c implementation. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1910 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../src/SAM4L_low_power_tick_management.c | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) 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 735cca624..230f7ae58 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 @@ -116,6 +116,13 @@ within the Cortex-M core itself. */ */ 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. */ @@ -175,8 +182,8 @@ void AST_ALARM_Handler(void) /*-----------------------------------------------------------*/ /* Override the default definition of vPortSetupTimerInterrupt() that is weakly -defined in the FreeRTOS Cortex-M3 port layer layer with a version that -configures the asynchronous timer (AST) to generate the tick interrupt. */ +defined in the FreeRTOS Cortex-M3 port layer with a version that configures the +asynchronous timer (AST) to generate the tick interrupt. */ void vPortSetupTimerInterrupt( void ) { 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 ) ) { @@ -240,7 +247,7 @@ void prvDisableAST( void ) } /*-----------------------------------------------------------*/ -void prvEnableAST( void ) +static void prvEnableAST( void ) { while( ast_is_busy( AST ) ) { @@ -255,9 +262,9 @@ void prvEnableAST( void ) /*-----------------------------------------------------------*/ /* Override the default definition of vPortSuppressTicksAndSleep() that is weakly -defined in the FreeRTOS Cortex-M3 port layer 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. */ +defined in the FreeRTOS Cortex-M3 port layet 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 ) { uint32_t ulAlarmValue, ulCompleteTickPeriods; -- 2.39.5