mbed library sources

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Fri Jul 17 09:15:10 2015 +0100
Revision:
592:a274ee790e56
Parent:
579:53297373a894
Synchronized with git revision e7144f83a8d75df80c4877936b6ffe552b0be9e6

Full URL: https://github.com/mbedmicro/mbed/commit/e7144f83a8d75df80c4877936b6ffe552b0be9e6/

More API implementation for SAMR21

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 579:53297373a894 1 #include "samd21j18a.h"
mbed_official 579:53297373a894 2 /**
mbed_official 579:53297373a894 3 * Initial system clock frequency. The System RC Oscillator (RCSYS) provides
mbed_official 579:53297373a894 4 * the source for the main clock at chip startup.
mbed_official 579:53297373a894 5 */
mbed_official 579:53297373a894 6 #define __SYSTEM_CLOCK (1000000)
mbed_official 579:53297373a894 7
mbed_official 579:53297373a894 8 uint32_t SystemCoreClock = __SYSTEM_CLOCK;/*!< System Clock Frequency (Core Clock)*/
mbed_official 579:53297373a894 9
mbed_official 579:53297373a894 10 /**
mbed_official 579:53297373a894 11 * Initialize the system
mbed_official 579:53297373a894 12 *
mbed_official 579:53297373a894 13 * @brief Setup the microcontroller system.
mbed_official 579:53297373a894 14 * Initialize the System and update the SystemCoreClock variable.
mbed_official 579:53297373a894 15 */
mbed_official 579:53297373a894 16 void SystemInit(void)
mbed_official 579:53297373a894 17 {
mbed_official 579:53297373a894 18 // Keep the default device state after reset
mbed_official 579:53297373a894 19 SystemCoreClock = __SYSTEM_CLOCK;
mbed_official 579:53297373a894 20 return;
mbed_official 579:53297373a894 21 }
mbed_official 579:53297373a894 22
mbed_official 579:53297373a894 23 /**
mbed_official 579:53297373a894 24 * Update SystemCoreClock variable
mbed_official 579:53297373a894 25 *
mbed_official 579:53297373a894 26 * @brief Updates the SystemCoreClock with current core Clock
mbed_official 579:53297373a894 27 * retrieved from cpu registers.
mbed_official 579:53297373a894 28 */
mbed_official 579:53297373a894 29 void SystemCoreClockUpdate(void)
mbed_official 579:53297373a894 30 {
mbed_official 579:53297373a894 31 // Not implemented
mbed_official 579:53297373a894 32 SystemCoreClock = __SYSTEM_CLOCK;
mbed_official 579:53297373a894 33 return;
mbed_official 579:53297373a894 34 }