From 4dd020784a3ce36c618698293f912f299db76d81 Mon Sep 17 00:00:00 2001 From: Sebastien Lorquet Date: Mon, 11 Jul 2016 23:57:57 +0200 Subject: [PATCH] renames in tickless --- arch/arm/src/stm32l4/stm32l4_tickless.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/src/stm32l4/stm32l4_tickless.c b/arch/arm/src/stm32l4/stm32l4_tickless.c index 123e93459d..b14bef51e8 100644 --- a/arch/arm/src/stm32l4/stm32l4_tickless.c +++ b/arch/arm/src/stm32l4/stm32l4_tickless.c @@ -118,7 +118,7 @@ * Private Types ****************************************************************************/ -struct stm32_tickless_s +struct stm32l4_tickless_s { struct stm32l4_oneshot_s oneshot; struct stm32l4_freerun_s freerun; @@ -128,14 +128,14 @@ struct stm32_tickless_s * Private Data ****************************************************************************/ -static struct stm32_tickless_s g_tickless; +static struct stm32l4_tickless_s g_tickless; /**************************************************************************** * Private Functions ****************************************************************************/ /**************************************************************************** - * Name: stm32_oneshot_handler + * Name: stm32l4_oneshot_handler * * Description: * Called when the one shot timer expires @@ -152,7 +152,7 @@ static struct stm32_tickless_s g_tickless; * ****************************************************************************/ -static void stm32_oneshot_handler(void *arg) +static void stm32l4_oneshot_handler(void *arg) { tmrinfo("Expired...\n"); sched_timer_expiration(); @@ -201,7 +201,7 @@ void up_timer_initialize(void) CONFIG_USEC_PER_TICK); if (ret < 0) { - tmrerr("ERROR: stm32_oneshot_initialize failed\n"); + tmrerr("ERROR: stm32l4_oneshot_initialize failed\n"); PANIC(); } @@ -211,7 +211,7 @@ void up_timer_initialize(void) ret = stm32l4_oneshot_max_delay(&g_tickless.oneshot, &max_delay); if (ret < 0) { - tmrerr("ERROR: stm32_oneshot_max_delay failed\n"); + tmrerr("ERROR: stm32l4_oneshot_max_delay failed\n"); PANIC(); } @@ -235,7 +235,7 @@ void up_timer_initialize(void) CONFIG_USEC_PER_TICK); if (ret < 0) { - tmrerr("ERROR: stm32_freerun_initialize failed\n"); + tmrerr("ERROR: stm32l4_freerun_initialize failed\n"); PANIC(); } } @@ -346,6 +346,6 @@ int up_timer_cancel(FAR struct timespec *ts) int up_timer_start(FAR const struct timespec *ts) { - return stm32l4_oneshot_start(&g_tickless.oneshot, stm32_oneshot_handler, NULL, ts); + return stm32l4_oneshot_start(&g_tickless.oneshot, stm32l4_oneshot_handler, NULL, ts); } #endif /* CONFIG_SCHED_TICKLESS */