#define MSEC_TO_TICK(msec) ((msec)* TICK_MSEC_RATIO)
struct clock_api {
- void (* _clock_init)(A_UINT32 ref_clk);
- void (* _clockregs_init)(void);
- A_UINT32 (* _uart_frequency)(void);
- void (* _delay_us)(int);
- void (* _wlan_band_set)(int);
- A_UINT32 (* _refclk_speed_get)(void);
- A_UINT32 (* _milliseconds)(void);
- void (* _sysclk_change)(void);
+ void (* _clock_init)(A_UINT32 ref_clk);
+ void (* _clockregs_init)(void);
+ A_UINT32 (* _uart_frequency)(void);
+ void (* _delay_us)(int);
+ void (* _wlan_band_set)(int);
+ A_UINT32 (* _refclk_speed_get)(void);
+ A_UINT32 (* _milliseconds)(void);
+ void (* _sysclk_change)(void);
- void (* _clock_tick)(void);
+#if defined(PROJECT_K2)
+ A_UINT32 (* _sysclk_get)(void);
+#endif
+
+ void (* _clock_tick)(void);
};
#endif /* __CLOCK_API_H__ */