Rename timer_driver() to _sys_clock_driver_init()

The revised name conforms to Zephyr OS naming conventions.

Change-Id: I5bcdaf1df7da9d8ce5787a08b29ead91dd8f24ce
Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
Peter Mitsis 2015-06-16 13:29:45 -04:00 committed by Anas Nashif
commit 1bafa75ef1
11 changed files with 11 additions and 11 deletions

View file

@ -34,4 +34,4 @@
% DRIVERTYPE CALL % DRIVERTYPE CALL
% ================================================ % ================================================
TIMERDRIVER 'timer_driver()' TIMERDRIVER '_sys_clock_driver_init()'

View file

@ -33,4 +33,4 @@
% DRIVERTYPE CALL % DRIVERTYPE CALL
% ================================================ % ================================================
TIMERDRIVER 'timer_driver()' TIMERDRIVER '_sys_clock_driver_init()'

View file

@ -33,4 +33,4 @@
% DRIVERTYPE CALL % DRIVERTYPE CALL
% =============================================== % ===============================================
TIMERDRIVER 'timer_driver()' TIMERDRIVER '_sys_clock_driver_init()'

View file

@ -34,4 +34,4 @@
% DRIVERTYPE CALL % DRIVERTYPE CALL
% ================================================ % ================================================
TIMERDRIVER 'timer_driver()' TIMERDRIVER '_sys_clock_driver_init()'

View file

@ -163,7 +163,7 @@ void _timer_int_handler(void *unused)
* @return N/A * @return N/A
*/ */
void timer_driver(void) void _sys_clock_driver_init(void)
{ {
int irq = CONFIG_ARCV2_TIMER0_INT_LVL; int irq = CONFIG_ARCV2_TIMER0_INT_LVL;
int prio = CONFIG_ARCV2_TIMER0_INT_PRI; int prio = CONFIG_ARCV2_TIMER0_INT_PRI;

View file

@ -615,7 +615,7 @@ void _timer_idle_exit(void)
* *
* @return N/A * @return N/A
*/ */
void timer_driver(void) void _sys_clock_driver_init(void)
{ {
/* enable counter, interrupt and set clock src to system clock */ /* enable counter, interrupt and set clock src to system clock */
union __stcsr stcsr = {.bit = {1, 1, 1, 0, 0, 0} }; union __stcsr stcsr = {.bit = {1, 1, 1, 0, 0, 0} };

View file

@ -497,7 +497,7 @@ void _timer_idle_exit(void)
* @return N/A * @return N/A
*/ */
void timer_driver(void) void _sys_clock_driver_init(void)
{ {
uint64_t hpetClockPeriod; uint64_t hpetClockPeriod;
uint64_t tickFempto; uint64_t tickFempto;

View file

@ -476,7 +476,7 @@ void _timer_idle_exit(void)
* @return N/A * @return N/A
*/ */
void timer_driver(void) void _sys_clock_driver_init(void)
{ {
/* determine the PIT counter value (in timer clock cycles/system tick) /* determine the PIT counter value (in timer clock cycles/system tick)
*/ */

View file

@ -540,7 +540,7 @@ void _timer_idle_exit(void)
* @return N/A * @return N/A
*/ */
void timer_driver(void) void _sys_clock_driver_init(void)
{ {
/* determine the PIT counter value (in timer clock cycles/system tick) /* determine the PIT counter value (in timer clock cycles/system tick)
*/ */

View file

@ -46,7 +46,7 @@ GTEXT(_timer_int_handler)
#else /* _ASMLANGUAGE */ #else /* _ASMLANGUAGE */
extern uint32_t timer_read(void); extern uint32_t timer_read(void);
extern void timer_driver(void); extern void _sys_clock_driver_init(void);
/* /*
* Timer interrupt handler is one of the routines that the driver * Timer interrupt handler is one of the routines that the driver
* has to implement, but it is not necessarily an external function. * has to implement, but it is not necessarily an external function.

View file

@ -63,7 +63,7 @@ uint32_t _sys_idle_elapsed_ticks = 1;
void nano_time_init(void) void nano_time_init(void)
{ {
timer_driver(); _sys_clock_driver_init();
} }
SYS_PREKERNEL_INIT(nano_time_init, 250); SYS_PREKERNEL_INIT(nano_time_init, 250);