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 Aug 31 18:09:46 2016 +0100
Revision:
125:2e9cc70d1897
Parent:
124:2241e3a39974
Child:
126:abea610beb85
Release 125 of the mbed library

Changes:

New target - KL27Z_IAR
New target - MAX32620HSP_ARM_STD
New target - MAX32620HSP_GCC_ARM
New target - MAX32620HSP_IAR
New target - NCS36510_ARM_STD
New target - NCS36510_GCC_ARM
New target - NCS36510_IAR

Added support for NSAPI_REUSEADDR to the lwip interface.
STM32F3 family : Add and enable asynchronous serial, plus tests.
STM32L4 family : Add and enable asynchronous serial, plus tests.
Fixing issue where GCC fails to report compile errors when non-verbose.
Add ethernet and IPV4 support for: NUCLEO_F207ZG, NUCLEO_F429ZI, NUCLEO_F767ZI, DISCO_F746NG.
RZ_A1H - Enable SPI1 on pins P6_4 to P6_7.
KL27Z : SPI driver bug fixes and Improvements, ARM linker file update.
STM32F4, STM32F7 families : Add entropy functions, documentation, code improvements, fix build issues.
HEXIWEAR: Update I2C pin mapping, Add support to create KDS projects.
LWIP - fix recv blocking send on accepted sockets.
SingletonPtr bugfixes.
Beetle: Implement sleep API.
uVisor: Update to v0.20.1-alpha, minor documentation update.
STM32F3 : fix RTOS IAR test, RTOS GCC_ARM test.
nrf5x : Introduce uart hardware flow control configuration.
K64F/K22F: Implement HAL lp_timer API.
Ticker: Move ticker initialisation to object creation time.
STM32F4 : remove printf from pwmout
NXP : Fix multiple definition errors in GCC_CR build, fix linker errors.
Add TOOLCHAIN_GCC_CR support.
STM32L1 family : Add and enable asynchronous serial, plus tests.
mbed-client : Fix Bootstrap and Connector functionality.
NUC472 : Fix Ethernet wrong INT status in RX_Action.
RTX_CM_lib.h : fix compiler warning.
NUCLEO : Use GCC small build for 64K flash STM32.
STM32F2 family : Add and enable asynchronous serial, plus tests.
uvisor : Move page heap after uVisor private data, update page allocator.
K64F: Revert to hardcoded stack pointer in RTX .
dns-query : Internal API change , documentation, Added support for multiple results and ipv6.
Add support for implementation-provided DNS servers.
Adopted netconn_gethostbyname in the lwip interface.
Restructured nsapi_dns.h to have clear separation between C/C++ .
Tool fixes.
Tests : New ones added and some updates to existing.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 65:5798e58a58b1 1 /* mbed Microcontroller Library
bogdanm 65:5798e58a58b1 2 * Copyright (c) 2006-2013 ARM Limited
bogdanm 65:5798e58a58b1 3 *
bogdanm 65:5798e58a58b1 4 * Licensed under the Apache License, Version 2.0 (the "License");
bogdanm 65:5798e58a58b1 5 * you may not use this file except in compliance with the License.
bogdanm 65:5798e58a58b1 6 * You may obtain a copy of the License at
bogdanm 65:5798e58a58b1 7 *
bogdanm 65:5798e58a58b1 8 * http://www.apache.org/licenses/LICENSE-2.0
bogdanm 65:5798e58a58b1 9 *
bogdanm 65:5798e58a58b1 10 * Unless required by applicable law or agreed to in writing, software
bogdanm 65:5798e58a58b1 11 * distributed under the License is distributed on an "AS IS" BASIS,
bogdanm 65:5798e58a58b1 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
bogdanm 65:5798e58a58b1 13 * See the License for the specific language governing permissions and
bogdanm 65:5798e58a58b1 14 * limitations under the License.
bogdanm 65:5798e58a58b1 15 */
bogdanm 65:5798e58a58b1 16 #ifndef MBED_H
bogdanm 65:5798e58a58b1 17 #define MBED_H
bogdanm 65:5798e58a58b1 18
AnnaBridge 125:2e9cc70d1897 19 #define MBED_LIBRARY_VERSION 125
Kojto 123:b0220dba8be7 20
Kojto 123:b0220dba8be7 21 #if MBED_CONF_RTOS_PRESENT
Kojto 123:b0220dba8be7 22 #include "rtos/rtos.h"
Kojto 123:b0220dba8be7 23 #endif
Kojto 123:b0220dba8be7 24
Kojto 123:b0220dba8be7 25 #if MBED_CONF_NSAPI_PRESENT
Kojto 123:b0220dba8be7 26 #include "network-socket/nsapi.h"
Kojto 123:b0220dba8be7 27 #endif
bogdanm 65:5798e58a58b1 28
Kojto 122:f9eeca106725 29 #include "toolchain.h"
bogdanm 65:5798e58a58b1 30 #include "platform.h"
bogdanm 65:5798e58a58b1 31
bogdanm 65:5798e58a58b1 32 // Useful C libraries
bogdanm 65:5798e58a58b1 33 #include <math.h>
bogdanm 65:5798e58a58b1 34 #include <time.h>
bogdanm 65:5798e58a58b1 35
bogdanm 65:5798e58a58b1 36 // mbed Debug libraries
bogdanm 88:9327015d4013 37 #include "mbed_error.h"
bogdanm 65:5798e58a58b1 38 #include "mbed_interface.h"
Kojto 122:f9eeca106725 39 #include "mbed_assert.h"
bogdanm 65:5798e58a58b1 40
bogdanm 65:5798e58a58b1 41 // mbed Peripheral components
bogdanm 65:5798e58a58b1 42 #include "DigitalIn.h"
bogdanm 65:5798e58a58b1 43 #include "DigitalOut.h"
bogdanm 65:5798e58a58b1 44 #include "DigitalInOut.h"
bogdanm 65:5798e58a58b1 45 #include "BusIn.h"
bogdanm 65:5798e58a58b1 46 #include "BusOut.h"
bogdanm 65:5798e58a58b1 47 #include "BusInOut.h"
bogdanm 65:5798e58a58b1 48 #include "PortIn.h"
bogdanm 65:5798e58a58b1 49 #include "PortInOut.h"
bogdanm 65:5798e58a58b1 50 #include "PortOut.h"
bogdanm 65:5798e58a58b1 51 #include "AnalogIn.h"
bogdanm 65:5798e58a58b1 52 #include "AnalogOut.h"
bogdanm 65:5798e58a58b1 53 #include "PwmOut.h"
bogdanm 65:5798e58a58b1 54 #include "Serial.h"
bogdanm 65:5798e58a58b1 55 #include "SPI.h"
bogdanm 65:5798e58a58b1 56 #include "SPISlave.h"
bogdanm 65:5798e58a58b1 57 #include "I2C.h"
bogdanm 65:5798e58a58b1 58 #include "I2CSlave.h"
bogdanm 65:5798e58a58b1 59 #include "Ethernet.h"
bogdanm 65:5798e58a58b1 60 #include "CAN.h"
emilmont 69:4a7918f48478 61 #include "RawSerial.h"
bogdanm 65:5798e58a58b1 62
bogdanm 65:5798e58a58b1 63 // mbed Internal components
bogdanm 65:5798e58a58b1 64 #include "Timer.h"
bogdanm 65:5798e58a58b1 65 #include "Ticker.h"
bogdanm 65:5798e58a58b1 66 #include "Timeout.h"
Kojto 98:8ab26030e058 67 #include "LowPowerTimeout.h"
Kojto 98:8ab26030e058 68 #include "LowPowerTicker.h"
Kojto 98:8ab26030e058 69 #include "LowPowerTimer.h"
bogdanm 65:5798e58a58b1 70 #include "LocalFileSystem.h"
bogdanm 65:5798e58a58b1 71 #include "InterruptIn.h"
bogdanm 65:5798e58a58b1 72 #include "wait_api.h"
bogdanm 65:5798e58a58b1 73 #include "sleep_api.h"
bogdanm 65:5798e58a58b1 74 #include "rtc_time.h"
bogdanm 65:5798e58a58b1 75
Kojto 122:f9eeca106725 76 // mbed Non-hardware components
Kojto 122:f9eeca106725 77 #include "Callback.h"
Kojto 122:f9eeca106725 78 #include "FunctionPointer.h"
Kojto 122:f9eeca106725 79
bogdanm 65:5798e58a58b1 80 using namespace mbed;
bogdanm 65:5798e58a58b1 81 using namespace std;
bogdanm 65:5798e58a58b1 82
bogdanm 65:5798e58a58b1 83 #endif