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

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Fri Jul 25 09:46:51 2014 +0100
Revision:
87:6213f644d804
Child:
93:e188a91d3eaa
Release 87 of the mbed library

Main changes:

- error.h renamed to mbed_error.h to avoid name clashes
- upgraded to V7 of the nRF51822 soft-device 110
- New targets: HRM107
- Improved test infrastructure
- Bug fixes on various targets

Who changed what in which revision?

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