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:
AnnaBridge
Date:
Wed Feb 20 20:53:29 2019 +0000
Revision:
172:65be27845400
Parent:
171:3a7713b1edbc
mbed library release version 165

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 148:fd96258d940d 1 /*
Kojto 148:fd96258d940d 2 ** ###################################################################
Kojto 148:fd96258d940d 3 ** Processors: LPC54114J256BD64_cm4
Kojto 148:fd96258d940d 4 ** LPC54114J256UK49_cm4
Kojto 148:fd96258d940d 5 **
Kojto 148:fd96258d940d 6 ** Compilers: Keil ARM C/C++ Compiler
Kojto 148:fd96258d940d 7 ** GNU C Compiler
Kojto 148:fd96258d940d 8 ** IAR ANSI C/C++ Compiler for ARM
Kojto 148:fd96258d940d 9 **
Kojto 148:fd96258d940d 10 ** Reference manual: LPC5411x User manual Rev. 1.0 16 February 2016
Kojto 148:fd96258d940d 11 ** Version: rev. 1.0, 2016-04-29
Kojto 148:fd96258d940d 12 ** Build: b160525
Kojto 148:fd96258d940d 13 **
Kojto 148:fd96258d940d 14 ** Abstract:
Kojto 148:fd96258d940d 15 ** Provides a system configuration function and a global variable that
Kojto 148:fd96258d940d 16 ** contains the system frequency. It configures the device and initializes
Kojto 148:fd96258d940d 17 ** the oscillator (PLL) that is part of the microcontroller device.
Kojto 148:fd96258d940d 18 **
Kojto 148:fd96258d940d 19 ** Copyright (c) 2016 Freescale Semiconductor, Inc.
Kojto 148:fd96258d940d 20 ** All rights reserved.
Kojto 148:fd96258d940d 21 **
Kojto 148:fd96258d940d 22 ** Redistribution and use in source and binary forms, with or without modification,
Kojto 148:fd96258d940d 23 ** are permitted provided that the following conditions are met:
Kojto 148:fd96258d940d 24 **
Kojto 148:fd96258d940d 25 ** o Redistributions of source code must retain the above copyright notice, this list
Kojto 148:fd96258d940d 26 ** of conditions and the following disclaimer.
Kojto 148:fd96258d940d 27 **
Kojto 148:fd96258d940d 28 ** o Redistributions in binary form must reproduce the above copyright notice, this
Kojto 148:fd96258d940d 29 ** list of conditions and the following disclaimer in the documentation and/or
Kojto 148:fd96258d940d 30 ** other materials provided with the distribution.
Kojto 148:fd96258d940d 31 **
Kojto 148:fd96258d940d 32 ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its
Kojto 148:fd96258d940d 33 ** contributors may be used to endorse or promote products derived from this
Kojto 148:fd96258d940d 34 ** software without specific prior written permission.
Kojto 148:fd96258d940d 35 **
Kojto 148:fd96258d940d 36 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
Kojto 148:fd96258d940d 37 ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
Kojto 148:fd96258d940d 38 ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 148:fd96258d940d 39 ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
Kojto 148:fd96258d940d 40 ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
Kojto 148:fd96258d940d 41 ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
Kojto 148:fd96258d940d 42 ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
Kojto 148:fd96258d940d 43 ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Kojto 148:fd96258d940d 44 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
Kojto 148:fd96258d940d 45 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 148:fd96258d940d 46 **
Kojto 148:fd96258d940d 47 ** http: www.freescale.com
Kojto 148:fd96258d940d 48 ** mail: support@freescale.com
Kojto 148:fd96258d940d 49 **
Kojto 148:fd96258d940d 50 ** Revisions:
Kojto 148:fd96258d940d 51 ** - rev. 1.0 (2016-04-29)
Kojto 148:fd96258d940d 52 ** Initial version.
Kojto 148:fd96258d940d 53 **
Kojto 148:fd96258d940d 54 ** ###################################################################
Kojto 148:fd96258d940d 55 */
Kojto 148:fd96258d940d 56
Kojto 148:fd96258d940d 57 /*!
Kojto 148:fd96258d940d 58 * @file LPC54114_cm4
Kojto 148:fd96258d940d 59 * @version 1.0
Kojto 148:fd96258d940d 60 * @date 2016-04-29
Kojto 148:fd96258d940d 61 * @brief Device specific configuration file for LPC54114_cm4 (header file)
Kojto 148:fd96258d940d 62 *
Kojto 148:fd96258d940d 63 * Provides a system configuration function and a global variable that contains
Kojto 148:fd96258d940d 64 * the system frequency. It configures the device and initializes the oscillator
Kojto 148:fd96258d940d 65 * (PLL) that is part of the microcontroller device.
Kojto 148:fd96258d940d 66 */
Kojto 148:fd96258d940d 67
Kojto 148:fd96258d940d 68 #ifndef _SYSTEM_LPC54114_cm4_H_
Kojto 148:fd96258d940d 69 #define _SYSTEM_LPC54114_cm4_H_ /**< Symbol preventing repeated inclusion */
Kojto 148:fd96258d940d 70
Kojto 148:fd96258d940d 71 #ifdef __cplusplus
Kojto 148:fd96258d940d 72 extern "C" {
Kojto 148:fd96258d940d 73 #endif
Kojto 148:fd96258d940d 74
Kojto 148:fd96258d940d 75 #include <stdint.h>
Kojto 148:fd96258d940d 76
Kojto 148:fd96258d940d 77
Kojto 148:fd96258d940d 78 #define DEFAULT_SYSTEM_CLOCK 12000000u /* Default System clock value */
Kojto 148:fd96258d940d 79 #define CLK_RTC_32K_CLK 32768u /* RTC oscillator 32 kHz output (32k_clk */
Kojto 148:fd96258d940d 80 #define CLK_FRO_12MHZ 12000000u /* FRO 12 MHz (fro_12m) */
Kojto 148:fd96258d940d 81 #define CLK_FRO_48MHZ 48000000u /* FRO 48 MHz (fro_48m) */
Kojto 148:fd96258d940d 82 #define CLK_FRO_96MHZ 96000000u /* FRO 96 MHz (fro_96m) */
Kojto 148:fd96258d940d 83 #define CLK_CLK_IN 0u /* Default CLK_IN pin clock */
Kojto 148:fd96258d940d 84
Kojto 148:fd96258d940d 85
Kojto 148:fd96258d940d 86 /**
Kojto 148:fd96258d940d 87 * @brief System clock frequency (core clock)
Kojto 148:fd96258d940d 88 *
Kojto 148:fd96258d940d 89 * The system clock frequency supplied to the SysTick timer and the processor
Kojto 148:fd96258d940d 90 * core clock. This variable can be used by the user application to setup the
Kojto 148:fd96258d940d 91 * SysTick timer or configure other parameters. It may also be used by debugger to
Kojto 148:fd96258d940d 92 * query the frequency of the debug timer or configure the trace clock speed
Kojto 148:fd96258d940d 93 * SystemCoreClock is initialized with a correct predefined value.
Kojto 148:fd96258d940d 94 */
Kojto 148:fd96258d940d 95 extern uint32_t SystemCoreClock;
Kojto 148:fd96258d940d 96
Kojto 148:fd96258d940d 97 /**
Kojto 148:fd96258d940d 98 * @brief Setup the microcontroller system.
Kojto 148:fd96258d940d 99 *
Kojto 148:fd96258d940d 100 * Typically this function configures the oscillator (PLL) that is part of the
Kojto 148:fd96258d940d 101 * microcontroller device. For systems with variable clock speed it also updates
Kojto 148:fd96258d940d 102 * the variable SystemCoreClock. SystemInit is called from startup_device file.
Kojto 148:fd96258d940d 103 */
Kojto 148:fd96258d940d 104 void SystemInit (void);
Kojto 148:fd96258d940d 105
Kojto 148:fd96258d940d 106 /**
Kojto 148:fd96258d940d 107 * @brief Updates the SystemCoreClock variable.
Kojto 148:fd96258d940d 108 *
Kojto 148:fd96258d940d 109 * It must be called whenever the core clock is changed during program
Kojto 148:fd96258d940d 110 * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates
Kojto 148:fd96258d940d 111 * the current core clock.
Kojto 148:fd96258d940d 112 */
Kojto 148:fd96258d940d 113 void SystemCoreClockUpdate (void);
Kojto 148:fd96258d940d 114
Kojto 148:fd96258d940d 115 #ifdef __cplusplus
Kojto 148:fd96258d940d 116 }
Kojto 148:fd96258d940d 117 #endif
Kojto 148:fd96258d940d 118
Kojto 148:fd96258d940d 119 #endif /* _SYSTEM_LPC54114_cm4_H_ */