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

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
emilmont
Date:
Tue Feb 18 15:02:39 2014 +0000
Revision:
78:ed8466a608b4
Child:
79:0c05e21ae27e
Add KL05Z Target
Fix LPC11XX InterruptIn
Fix NUCLEO boards us_ticker
Fix NUCLEO_L152RE AnalogOut

Who changed what in which revision?

UserRevisionLine numberNew contents of line
emilmont 78:ed8466a608b4 1 /*
emilmont 78:ed8466a608b4 2 ** ###################################################################
emilmont 78:ed8466a608b4 3 ** Processor: MKL05Z128VLK4
emilmont 78:ed8466a608b4 4 ** Compilers: ARM Compiler
emilmont 78:ed8466a608b4 5 ** Freescale C/C++ for Embedded ARM
emilmont 78:ed8466a608b4 6 ** GNU C Compiler
emilmont 78:ed8466a608b4 7 ** IAR ANSI C/C++ Compiler for ARM
emilmont 78:ed8466a608b4 8 **
emilmont 78:ed8466a608b4 9 ** Reference manual: KL05RM, Rev.1, Jun 2012
emilmont 78:ed8466a608b4 10 ** Version: rev. 1.1, 2012-06-21
emilmont 78:ed8466a608b4 11 **
emilmont 78:ed8466a608b4 12 ** Abstract:
emilmont 78:ed8466a608b4 13 ** Provides a system configuration function and a global variable that
emilmont 78:ed8466a608b4 14 ** contains the system frequency. It configures the device and initializes
emilmont 78:ed8466a608b4 15 ** the oscillator (PLL) that is part of the microcontroller device.
emilmont 78:ed8466a608b4 16 **
emilmont 78:ed8466a608b4 17 ** Copyright: 2012 Freescale Semiconductor, Inc. All Rights Reserved.
emilmont 78:ed8466a608b4 18 **
emilmont 78:ed8466a608b4 19 ** http: www.freescale.com
emilmont 78:ed8466a608b4 20 ** mail: support@freescale.com
emilmont 78:ed8466a608b4 21 **
emilmont 78:ed8466a608b4 22 ** Revisions:
emilmont 78:ed8466a608b4 23 ** - rev. 1.0 (2012-06-13)
emilmont 78:ed8466a608b4 24 ** Initial version.
emilmont 78:ed8466a608b4 25 ** - rev. 1.1 (2012-06-21)
emilmont 78:ed8466a608b4 26 ** Update according to reference manual rev. 1.
emilmont 78:ed8466a608b4 27 **
emilmont 78:ed8466a608b4 28 ** ###################################################################
emilmont 78:ed8466a608b4 29 */
emilmont 78:ed8466a608b4 30
emilmont 78:ed8466a608b4 31 /**
emilmont 78:ed8466a608b4 32 * @file MKL05Z4
emilmont 78:ed8466a608b4 33 * @version 1.1
emilmont 78:ed8466a608b4 34 * @date 2012-06-21
emilmont 78:ed8466a608b4 35 * @brief Device specific configuration file for MKL05Z4 (header file)
emilmont 78:ed8466a608b4 36 *
emilmont 78:ed8466a608b4 37 * Provides a system configuration function and a global variable that contains
emilmont 78:ed8466a608b4 38 * the system frequency. It configures the device and initializes the oscillator
emilmont 78:ed8466a608b4 39 * (PLL) that is part of the microcontroller device.
emilmont 78:ed8466a608b4 40 */
emilmont 78:ed8466a608b4 41
emilmont 78:ed8466a608b4 42 #ifndef SYSTEM_MKL05Z4_H_
emilmont 78:ed8466a608b4 43 #define SYSTEM_MKL05Z4_H_ /**< Symbol preventing repeated inclusion */
emilmont 78:ed8466a608b4 44
emilmont 78:ed8466a608b4 45 #ifdef __cplusplus
emilmont 78:ed8466a608b4 46 extern "C" {
emilmont 78:ed8466a608b4 47 #endif
emilmont 78:ed8466a608b4 48
emilmont 78:ed8466a608b4 49 #include <stdint.h>
emilmont 78:ed8466a608b4 50
emilmont 78:ed8466a608b4 51 /**
emilmont 78:ed8466a608b4 52 * @brief System clock frequency (core clock)
emilmont 78:ed8466a608b4 53 *
emilmont 78:ed8466a608b4 54 * The system clock frequency supplied to the SysTick timer and the processor
emilmont 78:ed8466a608b4 55 * core clock. This variable can be used by the user application to setup the
emilmont 78:ed8466a608b4 56 * SysTick timer or configure other parameters. It may also be used by debugger to
emilmont 78:ed8466a608b4 57 * query the frequency of the debug timer or configure the trace clock speed
emilmont 78:ed8466a608b4 58 * SystemCoreClock is initialized with a correct predefined value.
emilmont 78:ed8466a608b4 59 */
emilmont 78:ed8466a608b4 60 extern uint32_t SystemCoreClock;
emilmont 78:ed8466a608b4 61
emilmont 78:ed8466a608b4 62 /**
emilmont 78:ed8466a608b4 63 * @brief Setup the microcontroller system.
emilmont 78:ed8466a608b4 64 *
emilmont 78:ed8466a608b4 65 * Typically this function configures the oscillator (PLL) that is part of the
emilmont 78:ed8466a608b4 66 * microcontroller device. For systems with variable clock speed it also updates
emilmont 78:ed8466a608b4 67 * the variable SystemCoreClock. SystemInit is called from startup_device file.
emilmont 78:ed8466a608b4 68 */
emilmont 78:ed8466a608b4 69 void SystemInit (void);
emilmont 78:ed8466a608b4 70
emilmont 78:ed8466a608b4 71 /**
emilmont 78:ed8466a608b4 72 * @brief Updates the SystemCoreClock variable.
emilmont 78:ed8466a608b4 73 *
emilmont 78:ed8466a608b4 74 * It must be called whenever the core clock is changed during program
emilmont 78:ed8466a608b4 75 * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates
emilmont 78:ed8466a608b4 76 * the current core clock.
emilmont 78:ed8466a608b4 77 */
emilmont 78:ed8466a608b4 78 void SystemCoreClockUpdate (void);
emilmont 78:ed8466a608b4 79
emilmont 78:ed8466a608b4 80 #ifdef __cplusplus
emilmont 78:ed8466a608b4 81 }
emilmont 78:ed8466a608b4 82 #endif
emilmont 78:ed8466a608b4 83
emilmont 78:ed8466a608b4 84 #endif /* #if !defined(SYSTEM_MKL05Z4_H_) */