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 31 14:15:09 2015 +0100
Revision:
600:7d17ca308cd1
Parent:
514:7668256dbe61
Synchronized with git revision e4cd8bbd3e05b68e5a7f466c74035a85743d45e0

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

Enable LPC8xx usart when configuring it

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 514:7668256dbe61 1 /*******************************************************************************
mbed_official 514:7668256dbe61 2 * Copyright (C) 2015 Maxim Integrated Products, Inc., All Rights Reserved.
mbed_official 514:7668256dbe61 3 *
mbed_official 514:7668256dbe61 4 * Permission is hereby granted, free of charge, to any person obtaining a
mbed_official 514:7668256dbe61 5 * copy of this software and associated documentation files (the "Software"),
mbed_official 514:7668256dbe61 6 * to deal in the Software without restriction, including without limitation
mbed_official 514:7668256dbe61 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
mbed_official 514:7668256dbe61 8 * and/or sell copies of the Software, and to permit persons to whom the
mbed_official 514:7668256dbe61 9 * Software is furnished to do so, subject to the following conditions:
mbed_official 514:7668256dbe61 10 *
mbed_official 514:7668256dbe61 11 * The above copyright notice and this permission notice shall be included
mbed_official 514:7668256dbe61 12 * in all copies or substantial portions of the Software.
mbed_official 514:7668256dbe61 13 *
mbed_official 514:7668256dbe61 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
mbed_official 514:7668256dbe61 15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
mbed_official 514:7668256dbe61 16 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
mbed_official 514:7668256dbe61 17 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
mbed_official 514:7668256dbe61 18 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
mbed_official 514:7668256dbe61 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
mbed_official 514:7668256dbe61 20 * OTHER DEALINGS IN THE SOFTWARE.
mbed_official 514:7668256dbe61 21 *
mbed_official 514:7668256dbe61 22 * Except as contained in this notice, the name of Maxim Integrated
mbed_official 514:7668256dbe61 23 * Products, Inc. shall not be used except as stated in the Maxim Integrated
mbed_official 514:7668256dbe61 24 * Products, Inc. Branding Policy.
mbed_official 514:7668256dbe61 25 *
mbed_official 514:7668256dbe61 26 * The mere transfer of this software does not imply any licenses
mbed_official 514:7668256dbe61 27 * of trade secrets, proprietary technology, copyrights, patents,
mbed_official 514:7668256dbe61 28 * trademarks, maskwork rights, or any other form of intellectual
mbed_official 514:7668256dbe61 29 * property whatsoever. Maxim Integrated Products, Inc. retains all
mbed_official 514:7668256dbe61 30 * ownership rights.
mbed_official 514:7668256dbe61 31 *******************************************************************************
mbed_official 514:7668256dbe61 32 */
mbed_official 514:7668256dbe61 33
mbed_official 514:7668256dbe61 34 /******************************************************************************
mbed_official 514:7668256dbe61 35 *
mbed_official 514:7668256dbe61 36 * Linker configuration file, default ARM Cortex M3 produced by Maxim Integrated Inc.
mbed_official 514:7668256dbe61 37 *
mbed_official 514:7668256dbe61 38 *****************************************************************************/
mbed_official 514:7668256dbe61 39
mbed_official 514:7668256dbe61 40 MEMORY
mbed_official 514:7668256dbe61 41 {
mbed_official 514:7668256dbe61 42 FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x00040000 /* start from 0x0, fullsize flash, 256k */
mbed_official 514:7668256dbe61 43 RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00008000 /* full-size SRAM, 32k */
mbed_official 514:7668256dbe61 44 }
mbed_official 514:7668256dbe61 45
mbed_official 514:7668256dbe61 46 /* Linker script to place sections and symbol values. Should be used together
mbed_official 514:7668256dbe61 47 * with other linker script that defines memory regions FLASH and RAM.
mbed_official 514:7668256dbe61 48 * It references following symbols, which must be defined in code:
mbed_official 514:7668256dbe61 49 * Reset_Handler : Entry of reset handler
mbed_official 514:7668256dbe61 50 *
mbed_official 514:7668256dbe61 51 * It defines following symbols, which code can use without definition:
mbed_official 514:7668256dbe61 52 * __exidx_start
mbed_official 514:7668256dbe61 53 * __exidx_end
mbed_official 514:7668256dbe61 54 * __etext
mbed_official 514:7668256dbe61 55 * __data_start__
mbed_official 514:7668256dbe61 56 * __preinit_array_start
mbed_official 514:7668256dbe61 57 * __preinit_array_end
mbed_official 514:7668256dbe61 58 * __init_array_start
mbed_official 514:7668256dbe61 59 * __init_array_end
mbed_official 514:7668256dbe61 60 * __fini_array_start
mbed_official 514:7668256dbe61 61 * __fini_array_end
mbed_official 514:7668256dbe61 62 * __data_end__
mbed_official 514:7668256dbe61 63 * __bss_start__
mbed_official 514:7668256dbe61 64 * __bss_end__
mbed_official 514:7668256dbe61 65 * __end__
mbed_official 514:7668256dbe61 66 * end
mbed_official 514:7668256dbe61 67 * __HeapLimit
mbed_official 514:7668256dbe61 68 * __StackLimit
mbed_official 514:7668256dbe61 69 * __StackTop
mbed_official 514:7668256dbe61 70 * __stack
mbed_official 514:7668256dbe61 71 */
mbed_official 514:7668256dbe61 72 ENTRY(Reset_Handler)
mbed_official 514:7668256dbe61 73
mbed_official 514:7668256dbe61 74 SECTIONS
mbed_official 514:7668256dbe61 75 {
mbed_official 514:7668256dbe61 76 .text :
mbed_official 514:7668256dbe61 77 {
mbed_official 514:7668256dbe61 78 KEEP(*(.isr_vector))
mbed_official 514:7668256dbe61 79 *(.text*)
mbed_official 514:7668256dbe61 80
mbed_official 514:7668256dbe61 81 KEEP(*(.init))
mbed_official 514:7668256dbe61 82 KEEP(*(.fini))
mbed_official 514:7668256dbe61 83
mbed_official 514:7668256dbe61 84 /* .ctors */
mbed_official 514:7668256dbe61 85 *crtbegin.o(.ctors)
mbed_official 514:7668256dbe61 86 *crtbegin?.o(.ctors)
mbed_official 514:7668256dbe61 87 *(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
mbed_official 514:7668256dbe61 88 *(SORT(.ctors.*))
mbed_official 514:7668256dbe61 89 *(.ctors)
mbed_official 514:7668256dbe61 90
mbed_official 514:7668256dbe61 91 /* .dtors */
mbed_official 514:7668256dbe61 92 *crtbegin.o(.dtors)
mbed_official 514:7668256dbe61 93 *crtbegin?.o(.dtors)
mbed_official 514:7668256dbe61 94 *(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
mbed_official 514:7668256dbe61 95 *(SORT(.dtors.*))
mbed_official 514:7668256dbe61 96 *(.dtors)
mbed_official 514:7668256dbe61 97
mbed_official 514:7668256dbe61 98 *(.rodata*)
mbed_official 514:7668256dbe61 99
mbed_official 514:7668256dbe61 100 KEEP(*(.eh_frame*))
mbed_official 514:7668256dbe61 101 } > FLASH
mbed_official 514:7668256dbe61 102
mbed_official 514:7668256dbe61 103 .ARM.extab :
mbed_official 514:7668256dbe61 104 {
mbed_official 514:7668256dbe61 105 *(.ARM.extab* .gnu.linkonce.armextab.*)
mbed_official 514:7668256dbe61 106 } > FLASH
mbed_official 514:7668256dbe61 107
mbed_official 514:7668256dbe61 108 __exidx_start = .;
mbed_official 514:7668256dbe61 109 .ARM.exidx :
mbed_official 514:7668256dbe61 110 {
mbed_official 514:7668256dbe61 111 *(.ARM.exidx* .gnu.linkonce.armexidx.*)
mbed_official 514:7668256dbe61 112 } > FLASH
mbed_official 514:7668256dbe61 113 __exidx_end = .;
mbed_official 514:7668256dbe61 114
mbed_official 514:7668256dbe61 115 __etext = .;
mbed_official 514:7668256dbe61 116
mbed_official 514:7668256dbe61 117 .data : AT (__etext)
mbed_official 514:7668256dbe61 118 {
mbed_official 514:7668256dbe61 119 __data_start__ = .;
mbed_official 514:7668256dbe61 120 *(vtable)
mbed_official 514:7668256dbe61 121 *(.data*)
mbed_official 514:7668256dbe61 122
mbed_official 514:7668256dbe61 123 . = ALIGN(4);
mbed_official 514:7668256dbe61 124 /* preinit data */
mbed_official 514:7668256dbe61 125 PROVIDE_HIDDEN (__preinit_array_start = .);
mbed_official 514:7668256dbe61 126 KEEP(*(.preinit_array))
mbed_official 514:7668256dbe61 127 PROVIDE_HIDDEN (__preinit_array_end = .);
mbed_official 514:7668256dbe61 128
mbed_official 514:7668256dbe61 129 . = ALIGN(4);
mbed_official 514:7668256dbe61 130 /* init data */
mbed_official 514:7668256dbe61 131 PROVIDE_HIDDEN (__init_array_start = .);
mbed_official 514:7668256dbe61 132 KEEP(*(SORT(.init_array.*)))
mbed_official 514:7668256dbe61 133 KEEP(*(.init_array))
mbed_official 514:7668256dbe61 134 PROVIDE_HIDDEN (__init_array_end = .);
mbed_official 514:7668256dbe61 135
mbed_official 514:7668256dbe61 136
mbed_official 514:7668256dbe61 137 . = ALIGN(4);
mbed_official 514:7668256dbe61 138 /* finit data */
mbed_official 514:7668256dbe61 139 PROVIDE_HIDDEN (__fini_array_start = .);
mbed_official 514:7668256dbe61 140 KEEP(*(SORT(.fini_array.*)))
mbed_official 514:7668256dbe61 141 KEEP(*(.fini_array))
mbed_official 514:7668256dbe61 142 PROVIDE_HIDDEN (__fini_array_end = .);
mbed_official 514:7668256dbe61 143
mbed_official 514:7668256dbe61 144 . = ALIGN(4);
mbed_official 514:7668256dbe61 145 /* All data end */
mbed_official 514:7668256dbe61 146 __data_end__ = .;
mbed_official 514:7668256dbe61 147
mbed_official 514:7668256dbe61 148 } > RAM
mbed_official 514:7668256dbe61 149
mbed_official 514:7668256dbe61 150 .bss :
mbed_official 514:7668256dbe61 151 {
mbed_official 514:7668256dbe61 152 __bss_start__ = .;
mbed_official 514:7668256dbe61 153 *(.bss*)
mbed_official 514:7668256dbe61 154 *(COMMON)
mbed_official 514:7668256dbe61 155 __bss_end__ = .;
mbed_official 514:7668256dbe61 156 } > RAM
mbed_official 514:7668256dbe61 157
mbed_official 514:7668256dbe61 158 .heap :
mbed_official 514:7668256dbe61 159 {
mbed_official 514:7668256dbe61 160 __end__ = .;
mbed_official 514:7668256dbe61 161 end = __end__;
mbed_official 514:7668256dbe61 162 *(.heap*)
mbed_official 514:7668256dbe61 163 __HeapLimit = .;
mbed_official 514:7668256dbe61 164 } > RAM
mbed_official 514:7668256dbe61 165
mbed_official 514:7668256dbe61 166 /* .stack_dummy section doesn't contains any symbols. It is only
mbed_official 514:7668256dbe61 167 * used for linker to calculate size of stack sections, and assign
mbed_official 514:7668256dbe61 168 * values to stack symbols later */
mbed_official 514:7668256dbe61 169 .stack_dummy :
mbed_official 514:7668256dbe61 170 {
mbed_official 514:7668256dbe61 171 *(.stack)
mbed_official 514:7668256dbe61 172 } > RAM
mbed_official 514:7668256dbe61 173
mbed_official 514:7668256dbe61 174 /* Set stack top to end of RAM, and stack limit move down by
mbed_official 514:7668256dbe61 175 * size of stack_dummy section */
mbed_official 514:7668256dbe61 176 __StackTop = ORIGIN(RAM) + LENGTH(RAM);
mbed_official 514:7668256dbe61 177 __StackLimit = __StackTop - SIZEOF(.stack_dummy);
mbed_official 514:7668256dbe61 178 PROVIDE(__stack = __StackTop);
mbed_official 514:7668256dbe61 179
mbed_official 514:7668256dbe61 180 /* Check if data + heap + stack exceeds RAM limit */
mbed_official 514:7668256dbe61 181 ASSERT(__StackLimit >= __HeapLimit, "region RAM overflowed with stack")
mbed_official 514:7668256dbe61 182 }