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:
174:8bb9f3a33240
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 174:8bb9f3a33240 1 /* mbed Microcontroller Library - stackheap
mbed_official 174:8bb9f3a33240 2 * Copyright (C) 2009-2011 ARM Limited. All rights reserved.
mbed_official 174:8bb9f3a33240 3 *
mbed_official 174:8bb9f3a33240 4 * Setup a fixed single stack/heap memory model,
mbed_official 174:8bb9f3a33240 5 * between the top of the RW/ZI region and the stackpointer
mbed_official 174:8bb9f3a33240 6 */
mbed_official 174:8bb9f3a33240 7
mbed_official 174:8bb9f3a33240 8 #ifdef __cplusplus
mbed_official 174:8bb9f3a33240 9 extern "C" {
mbed_official 174:8bb9f3a33240 10 #endif
mbed_official 174:8bb9f3a33240 11
mbed_official 174:8bb9f3a33240 12 #include <rt_misc.h>
mbed_official 174:8bb9f3a33240 13 #include <stdint.h>
mbed_official 174:8bb9f3a33240 14
mbed_official 174:8bb9f3a33240 15 extern char Image$$RW_IRAM1$$ZI$$Limit[];
mbed_official 174:8bb9f3a33240 16
mbed_official 174:8bb9f3a33240 17 extern __value_in_regs struct __initial_stackheap __user_setup_stackheap(uint32_t R0, uint32_t R1, uint32_t R2, uint32_t R3) {
mbed_official 174:8bb9f3a33240 18 uint32_t zi_limit = (uint32_t)Image$$RW_IRAM1$$ZI$$Limit;
mbed_official 174:8bb9f3a33240 19 uint32_t sp_limit = __current_sp();
mbed_official 174:8bb9f3a33240 20
mbed_official 174:8bb9f3a33240 21 zi_limit = (zi_limit + 7) & ~0x7; // ensure zi_limit is 8-byte aligned
mbed_official 174:8bb9f3a33240 22
mbed_official 174:8bb9f3a33240 23 struct __initial_stackheap r;
mbed_official 174:8bb9f3a33240 24 r.heap_base = zi_limit;
mbed_official 174:8bb9f3a33240 25 r.heap_limit = sp_limit;
mbed_official 174:8bb9f3a33240 26 return r;
mbed_official 174:8bb9f3a33240 27 }
mbed_official 174:8bb9f3a33240 28
mbed_official 174:8bb9f3a33240 29 #ifdef __cplusplus
mbed_official 174:8bb9f3a33240 30 }
mbed_official 174:8bb9f3a33240 31 #endif