Robobo
system_sam3xa.c File Reference

Provides the low-level initialization functions that called on chip startup. More...

#include "sam3xa.h"

Macros

#define SYS_BOARD_OSCOUNT   (CKGR_MOR_MOSCXTST(0x8))
 
#define SYS_BOARD_PLLAR
 
#define SYS_BOARD_MCKR   (PMC_MCKR_PRES_CLK_2 | PMC_MCKR_CSS_PLLA_CLK)
 
#define SYS_UTMIPLL   (480000000UL) /* UTMI PLL frequency */
 
#define SYS_CKGR_MOR_KEY_VALUE   CKGR_MOR_KEY(0x37) /* Key to unlock MOR register */
 

Functions

void SystemInit (void)
 Setup the microcontroller system. Initialize the System and update the SystemFrequency variable. More...
 
void SystemCoreClockUpdate (void)
 Updates the SystemCoreClock with current core Clock retrieved from cpu registers. More...
 
void system_init_flash (uint32_t dw_clk)
 

Variables

uint32_t SystemCoreClock = CHIP_FREQ_MAINCK_RC_4MHZ
 

Detailed Description

Provides the low-level initialization functions that called on chip startup.

$asf_license$

Purpose

This file provides basic support for Cortex-M processor based microcontrollers.

Author
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Macro Definition Documentation

#define SYS_BOARD_PLLAR
Value:
| CKGR_PLLAR_MULA(0xdUL) \
| CKGR_PLLAR_PLLACOUNT(0x3fUL) \
| CKGR_PLLAR_DIVA(0x1UL))
#define CKGR_PLLAR_ONE
(CKGR_PLLAR) Must Be Set to 1
Definition: component_pmc.h:194

Function Documentation

void system_init_flash ( uint32_t  dw_clk)

Initialize flash.

void SystemCoreClockUpdate ( void  )

Updates the SystemCoreClock with current core Clock retrieved from cpu registers.

Update SystemCoreClock variable

Parameters
none
Returns
none
void SystemInit ( void  )

Setup the microcontroller system. Initialize the System and update the SystemFrequency variable.

Setup the microcontroller system. Initialize the System and update the SystemCoreClock variable.

Variable Documentation

uint32_t SystemCoreClock = CHIP_FREQ_MAINCK_RC_4MHZ

System Clock Frequency (Core Clock)