Skip to content
Snippets Groups Projects
Commit 3fe5b266 authored by Hauke Petersen's avatar Hauke Petersen
Browse files

boards/arduino-due: added clock configuration

parent 6ae8c428
No related branches found
No related tags found
No related merge requests found
......@@ -29,9 +29,6 @@ void led_init(void);
void board_init(void)
{
/* initialize core clocks via CMSIS function provided by Atmel */
SystemInit();
/* initialize the CPU */
cpu_init();
......
......@@ -31,7 +31,20 @@ extern "C" {
* @name Clock configuration
* @{
*/
#define CLOCK_CORECLOCK (84000000U)
/* targeted system core clock */
#define CLOCK_CORECLOCK (84000000UL)
/* external oscillator clock */
#define CLOCK_EXT_OSC (12000000UL)
/* define PLL configuration
*
* The values must fulfill this equation:
* CORECLOCK = (EXT_OCS / PLL_DIV) * (PLL_MUL + 1)
*/
#define CLOCK_PLL_MUL (83)
#define CLOCK_PLL_DIV (12)
/* number of wait states before flash read and write operations */
#define CLOCK_FWS (4) /* 4 is save for 84MHz */
/** @} */
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment