Define CLOCK_SOURCE and move the clock defines to appropriate files.

dev/timer
Rakendra Thapa 8 years ago
parent c99de05d23
commit 2d656b8732

@ -23,6 +23,19 @@
extern "C" {
#endif
/**
* @name Define the nominal CPU core clock in this board
* @{
*/
#define F_CPU 1000000
#define CLK80 1
#define CLK50 2
#define CLK40 3
#define CLK16 4
#define CLK1 5
#define CLOCK_SOURCE CLK40
/** @} */
/**
* @name Timer configuration
* @{

@ -34,7 +34,7 @@ void cpu_init(void)
cortexm_init();
/* initialize the clock system */
cpu_clock_init(CLK40);
cpu_clock_init(CLOCK_SOURCE);
}
void setup_fpu(void)

@ -74,18 +74,6 @@ extern "C" {
#endif
/** @} */
/**
* @name Define the nominal CPU core clock in this board
* @{
*/
#define F_CPU 1000000
#define CLK80 1
#define CLK50 2
#define CLK40 3
#define CLK16 4
#define CLK1 5
/** @} */
/**
* @name cpu functions
* @{

Loading…
Cancel
Save