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:
Wed Jul 01 09:45:11 2015 +0100
Revision:
579:53297373a894
Parent:
99:6b967e9f1a5d
Synchronized with git revision d5b4d2ab9c47edb4dc5776e7177b0c2263459081

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

Initial version of drivers for SAMR21

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 82:0b31dbcd4769 1 /*
mbed_official 82:0b31dbcd4769 2 ** ###################################################################
mbed_official 99:6b967e9f1a5d 3 ** Processors: MKL05Z32FK4
mbed_official 99:6b967e9f1a5d 4 ** MKL05Z32LC4
mbed_official 99:6b967e9f1a5d 5 ** MKL05Z32VLF4
mbed_official 99:6b967e9f1a5d 6 **
mbed_official 82:0b31dbcd4769 7 ** Compilers: ARM Compiler
mbed_official 82:0b31dbcd4769 8 ** Freescale C/C++ for Embedded ARM
mbed_official 82:0b31dbcd4769 9 ** GNU C Compiler
mbed_official 82:0b31dbcd4769 10 ** IAR ANSI C/C++ Compiler for ARM
mbed_official 82:0b31dbcd4769 11 **
mbed_official 99:6b967e9f1a5d 12 ** Reference manual: KL05P48M48SF1RM, Rev.3, Sep 2012
mbed_official 99:6b967e9f1a5d 13 ** Version: rev. 1.6, 2013-04-11
mbed_official 82:0b31dbcd4769 14 **
mbed_official 82:0b31dbcd4769 15 ** Abstract:
mbed_official 82:0b31dbcd4769 16 ** Provides a system configuration function and a global variable that
mbed_official 82:0b31dbcd4769 17 ** contains the system frequency. It configures the device and initializes
mbed_official 82:0b31dbcd4769 18 ** the oscillator (PLL) that is part of the microcontroller device.
mbed_official 82:0b31dbcd4769 19 **
mbed_official 99:6b967e9f1a5d 20 ** Copyright: 2013 Freescale, Inc. All Rights Reserved.
mbed_official 82:0b31dbcd4769 21 **
mbed_official 82:0b31dbcd4769 22 ** http: www.freescale.com
mbed_official 82:0b31dbcd4769 23 ** mail: support@freescale.com
mbed_official 82:0b31dbcd4769 24 **
mbed_official 82:0b31dbcd4769 25 ** Revisions:
mbed_official 99:6b967e9f1a5d 26 ** - rev. 1.0 (2012-06-08)
mbed_official 82:0b31dbcd4769 27 ** Initial version.
mbed_official 82:0b31dbcd4769 28 ** - rev. 1.1 (2012-06-21)
mbed_official 82:0b31dbcd4769 29 ** Update according to reference manual rev. 1.
mbed_official 99:6b967e9f1a5d 30 ** - rev. 1.2 (2012-08-01)
mbed_official 99:6b967e9f1a5d 31 ** Device type UARTLP changed to UART0.
mbed_official 99:6b967e9f1a5d 32 ** Missing PORTB_IRQn interrupt number definition added.
mbed_official 99:6b967e9f1a5d 33 ** - rev. 1.3 (2012-10-04)
mbed_official 99:6b967e9f1a5d 34 ** Update according to reference manual rev. 3.
mbed_official 99:6b967e9f1a5d 35 ** - rev. 1.4 (2012-11-22)
mbed_official 99:6b967e9f1a5d 36 ** MCG module - bit LOLS in MCG_S register renamed to LOLS0.
mbed_official 99:6b967e9f1a5d 37 ** NV registers - bit EZPORT_DIS in NV_FOPT register removed.
mbed_official 99:6b967e9f1a5d 38 ** - rev. 1.5 (2013-04-05)
mbed_official 99:6b967e9f1a5d 39 ** Changed start of doxygen comment.
mbed_official 99:6b967e9f1a5d 40 ** - rev. 1.6 (2013-04-11)
mbed_official 99:6b967e9f1a5d 41 ** SystemInit methods updated with predefined initialization sequence.
mbed_official 82:0b31dbcd4769 42 **
mbed_official 82:0b31dbcd4769 43 ** ###################################################################
mbed_official 82:0b31dbcd4769 44 */
mbed_official 82:0b31dbcd4769 45
mbed_official 99:6b967e9f1a5d 46 /*!
mbed_official 82:0b31dbcd4769 47 * @file MKL05Z4
mbed_official 99:6b967e9f1a5d 48 * @version 1.6
mbed_official 99:6b967e9f1a5d 49 * @date 2013-04-11
mbed_official 82:0b31dbcd4769 50 * @brief Device specific configuration file for MKL05Z4 (header file)
mbed_official 82:0b31dbcd4769 51 *
mbed_official 82:0b31dbcd4769 52 * Provides a system configuration function and a global variable that contains
mbed_official 82:0b31dbcd4769 53 * the system frequency. It configures the device and initializes the oscillator
mbed_official 82:0b31dbcd4769 54 * (PLL) that is part of the microcontroller device.
mbed_official 82:0b31dbcd4769 55 */
mbed_official 82:0b31dbcd4769 56
mbed_official 82:0b31dbcd4769 57 #ifndef SYSTEM_MKL05Z4_H_
mbed_official 82:0b31dbcd4769 58 #define SYSTEM_MKL05Z4_H_ /**< Symbol preventing repeated inclusion */
mbed_official 82:0b31dbcd4769 59
mbed_official 82:0b31dbcd4769 60 #ifdef __cplusplus
mbed_official 82:0b31dbcd4769 61 extern "C" {
mbed_official 82:0b31dbcd4769 62 #endif
mbed_official 82:0b31dbcd4769 63
mbed_official 82:0b31dbcd4769 64 #include <stdint.h>
mbed_official 82:0b31dbcd4769 65
mbed_official 82:0b31dbcd4769 66 /**
mbed_official 82:0b31dbcd4769 67 * @brief System clock frequency (core clock)
mbed_official 82:0b31dbcd4769 68 *
mbed_official 82:0b31dbcd4769 69 * The system clock frequency supplied to the SysTick timer and the processor
mbed_official 82:0b31dbcd4769 70 * core clock. This variable can be used by the user application to setup the
mbed_official 82:0b31dbcd4769 71 * SysTick timer or configure other parameters. It may also be used by debugger to
mbed_official 82:0b31dbcd4769 72 * query the frequency of the debug timer or configure the trace clock speed
mbed_official 82:0b31dbcd4769 73 * SystemCoreClock is initialized with a correct predefined value.
mbed_official 82:0b31dbcd4769 74 */
mbed_official 82:0b31dbcd4769 75 extern uint32_t SystemCoreClock;
mbed_official 82:0b31dbcd4769 76
mbed_official 82:0b31dbcd4769 77 /**
mbed_official 82:0b31dbcd4769 78 * @brief Setup the microcontroller system.
mbed_official 82:0b31dbcd4769 79 *
mbed_official 82:0b31dbcd4769 80 * Typically this function configures the oscillator (PLL) that is part of the
mbed_official 82:0b31dbcd4769 81 * microcontroller device. For systems with variable clock speed it also updates
mbed_official 82:0b31dbcd4769 82 * the variable SystemCoreClock. SystemInit is called from startup_device file.
mbed_official 82:0b31dbcd4769 83 */
mbed_official 82:0b31dbcd4769 84 void SystemInit (void);
mbed_official 82:0b31dbcd4769 85
mbed_official 82:0b31dbcd4769 86 /**
mbed_official 82:0b31dbcd4769 87 * @brief Updates the SystemCoreClock variable.
mbed_official 82:0b31dbcd4769 88 *
mbed_official 82:0b31dbcd4769 89 * It must be called whenever the core clock is changed during program
mbed_official 82:0b31dbcd4769 90 * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates
mbed_official 82:0b31dbcd4769 91 * the current core clock.
mbed_official 82:0b31dbcd4769 92 */
mbed_official 82:0b31dbcd4769 93 void SystemCoreClockUpdate (void);
mbed_official 82:0b31dbcd4769 94
mbed_official 82:0b31dbcd4769 95 #ifdef __cplusplus
mbed_official 82:0b31dbcd4769 96 }
mbed_official 82:0b31dbcd4769 97 #endif
mbed_official 82:0b31dbcd4769 98
mbed_official 82:0b31dbcd4769 99 #endif /* #if !defined(SYSTEM_MKL05Z4_H_) */