From 55af242704f2fde5da0805f53de16ef4d22519e6 Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Thu, 16 Apr 2015 12:25:11 -0700 Subject: [PATCH] Renaming nanoTimeInit to nano_time_init Updating nano kernel functions to follow a consistent naming convention. Part of that process is the removal of camelCase naming conventions for the preferred_underscore_method. Change accomplished with the following script: #!/bin/bash echo "Searching for ${1} to replace with ${2}" find . -type f \( -iname \*.c -o -iname \*.h -o -iname \*.s -o -iname \*.kconf \) \ -not \( -path host/src/genIdt -prune \) \ \ -not \( -path host/src/gen_tables -prune \) \ -print | xargs sed -i "s/"${1}"/"${2}"/g" Signed-off-by: Dan Kalowsky --- kernel/nanokernel/core/nanotime.c | 8 ++++---- samples/nanokernel/test/test_timer/src/timer.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/nanokernel/core/nanotime.c b/kernel/nanokernel/core/nanotime.c index d8fcb156048..c33395fc987 100644 --- a/kernel/nanokernel/core/nanotime.c +++ b/kernel/nanokernel/core/nanotime.c @@ -48,20 +48,20 @@ struct nano_timer *nanoTimerList = NULL; /******************************************************************************* * -* nanoTimeInit - constructor that initializes nanokernel time tracking system +* nano_time_init - constructor that initializes nanokernel time tracking system * * RETURNS: N/A * */ -NANO_INIT_SYS_NORMAL void nanoTimeInit(void) +NANO_INIT_SYS_NORMAL void nano_time_init(void) { timer_driver(0); /* note: priority parameter is unused */ } #ifdef VXMICRO_ARCH_arm -void (*__ctor_nanoTimeInit)(void) __attribute__((section(".ctors.250"))) = - nanoTimeInit; +void (*__ctor_nano_time_init)(void) __attribute__((section(".ctors.250"))) = + nano_time_init; #endif /******************************************************************************* diff --git a/samples/nanokernel/test/test_timer/src/timer.c b/samples/nanokernel/test/test_timer/src/timer.c index de1d5845bce..c75ea1285b3 100644 --- a/samples/nanokernel/test/test_timer/src/timer.c +++ b/samples/nanokernel/test/test_timer/src/timer.c @@ -36,7 +36,7 @@ This module tests the following timer related routines: nano_timer_init(), nano_fiber_timer_start(), nano_fiber_timer_stop(), nano_fiber_timer_test(), nano_fiber_timer_wait(), nano_task_timer_start(), nano_task_timer_stop(), nano_task_timer_test(), nano_task_timer_wait(), - nanoTimeInit(), nano_node_tick_get_32(), nano_node_cycle_get_32(), nano_node_tick_delta() + nano_time_init(), nano_node_tick_get_32(), nano_node_cycle_get_32(), nano_node_tick_delta() */ /* includes */