The clock frequency can be always evaluated at compile time using
CPU_FREQ. Keep the clock_get_rate() as private function for debugging
purposes.
Moreover, rename clock_set_rate() to the more clear name clock_init().
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3598
38d2e660-2303-0410-9eaa-
f027e97ec537
: : "r"(__n) : "memory", "cc");
}
-unsigned long clock_get_rate(void)
+INLINE unsigned long clock_get_rate(void)
{
reg32_t rcc = HWREG(SYSCTL_RCC);
return i;
}
-void clock_set_rate(void)
+void clock_init(void)
{
reg32_t rcc, rcc2;
unsigned long clk;
extern void lm3s_busyWait(unsigned long iterations);
-unsigned long clock_get_rate(void);
-void clock_set_rate(void);
+void clock_init(void);
#endif /* DRV_LM3S1968_CLOCK_H */