mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/udoo: added clock configuration
This commit is contained in:
parent
07fbe5e35f
commit
dd129d0dde
@ -21,7 +21,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "board.h"
|
||||
#include "system_sam3xa.h"
|
||||
|
||||
|
||||
void led_init(void);
|
||||
@ -29,9 +28,6 @@ void led_init(void);
|
||||
|
||||
void board_init(void)
|
||||
{
|
||||
/* initialize core clocks via STM-lib given function */
|
||||
SystemInit();
|
||||
|
||||
/* initialize the CPU */
|
||||
cpu_init();
|
||||
|
||||
|
@ -29,7 +29,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 */
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user