mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

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