Contiki 3.x
Functions | Variables
system_MK60D10.h File Reference

Device specific configuration file for MK60D10 (header file) More...

#include <stdint.h>

Go to the source code of this file.

Functions

void SystemInit (void)
 Setup the microcontroller system. More...
 
void SystemCoreClockUpdate (void)
 Updates all of the SystemCoreClock variables. More...
 

Variables

uint32_t SystemCoreClock
 Current core clock frequency. More...
 
uint32_t SystemSysClock
 Current system clock frequency. More...
 
uint32_t SystemBusClock
 Current bus clock frequency. More...
 
uint32_t SystemFlexBusClock
 Current FlexBus clock frequency. More...
 
uint32_t SystemFlashClock
 Current flash clock frequency. More...
 

Detailed Description

Device specific configuration file for MK60D10 (header file)

Provides a system configuration function and a global variable that contains the system frequency. It configures the device clocks and initializes the oscillator that is part of the microcontroller device.

Definition in file system_MK60D10.h.

Function Documentation

void SystemCoreClockUpdate ( void  )

Updates all of the SystemCoreClock variables.

It must be called whenever the core clock is changed during program execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates the current core clock.

Updates all of the SystemCoreClock variables.

Parameters
none
Returns
none

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

Definition at line 71 of file system_ADuCRF101.c.

void SystemInit ( void  )

Setup the microcontroller system.

Typically this function configures the oscillator (PLL) that is part of the microcontroller device. For systems with variable clock speed it also updates the variable SystemCoreClock. SystemInit is called from startup_device file.

Setup the microcontroller system.

Parameters
none
Returns
none

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

Setup the microcontroller system.

Parameters
none
Returns
none

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

Parameters
none
Returns
none

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

Definition at line 115 of file system_ADuCRF101.c.

Variable Documentation

uint32_t SystemBusClock

Current bus clock frequency.

MCGOUTCLK divided by OUTDIV2 clocks the bus slaves and peripherals (excluding memories).

Definition at line 50 of file system_MK60D10.c.

uint32_t SystemCoreClock

Current core clock frequency.

MCGOUTCLK divided by OUTDIV1 clocks the ARM Cortex-M4 core.

Definition at line 48 of file system_MK60D10.c.

uint32_t SystemFlashClock

Current flash clock frequency.

MCGOUTCLK divided by OUTDIV4 clocks the flash memory.

Definition at line 52 of file system_MK60D10.c.

uint32_t SystemFlexBusClock

Current FlexBus clock frequency.

MCGOUTCLK divided by OUTDIV3 clocks the external FlexBus interface.

Definition at line 51 of file system_MK60D10.c.

uint32_t SystemSysClock

Current system clock frequency.

MCGOUTCLK divided by OUTDIV1 clocks the crossbar switch and bus masters directly connected to the crossbar. In addition, this clock is used for UART0 and UART1.

Definition at line 49 of file system_MK60D10.c.