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:
parent
136bef3c5d
commit
1bafa75ef1
11 changed files with 11 additions and 11 deletions
|
@ -34,4 +34,4 @@
|
||||||
|
|
||||||
% DRIVERTYPE CALL
|
% DRIVERTYPE CALL
|
||||||
% ================================================
|
% ================================================
|
||||||
TIMERDRIVER 'timer_driver()'
|
TIMERDRIVER '_sys_clock_driver_init()'
|
||||||
|
|
|
@ -33,4 +33,4 @@
|
||||||
|
|
||||||
% DRIVERTYPE CALL
|
% DRIVERTYPE CALL
|
||||||
% ================================================
|
% ================================================
|
||||||
TIMERDRIVER 'timer_driver()'
|
TIMERDRIVER '_sys_clock_driver_init()'
|
||||||
|
|
|
@ -33,4 +33,4 @@
|
||||||
|
|
||||||
% DRIVERTYPE CALL
|
% DRIVERTYPE CALL
|
||||||
% ===============================================
|
% ===============================================
|
||||||
TIMERDRIVER 'timer_driver()'
|
TIMERDRIVER '_sys_clock_driver_init()'
|
||||||
|
|
|
@ -34,4 +34,4 @@
|
||||||
|
|
||||||
% DRIVERTYPE CALL
|
% DRIVERTYPE CALL
|
||||||
% ================================================
|
% ================================================
|
||||||
TIMERDRIVER 'timer_driver()'
|
TIMERDRIVER '_sys_clock_driver_init()'
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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} };
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue