1 #ifndef __CLOCK_API_H__
2 #define __CLOCK_API_H__
4 #define TICK_MSEC_RATIO 1
5 #define TICK_TO_MSEC(tick) ((tick)/TICK_MSEC_RATIO)
6 #define MSEC_TO_TICK(msec) ((msec)* TICK_MSEC_RATIO)
9 void (* _clock_init)(A_UINT32 ref_clk);
10 void (* _clockregs_init)(void);
11 A_UINT32 (* _uart_frequency)(void);
12 void (* _delay_us)(int);
13 void (* _wlan_band_set)(int);
14 A_UINT32 (* _refclk_speed_get)(void);
15 A_UINT32 (* _milliseconds)(void);
16 void (* _sysclk_change)(void);
18 void (* _clock_tick)(void);
21 #endif /* __CLOCK_API_H__ */