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:
<>
Date:
Thu Oct 27 16:45:56 2016 +0100
Revision:
128:9bcdf88f62b0
Parent:
127:25aea2a3f4e3
Child:
129:0ab6a29f35bf
Release 128 of the mbed library

Ports for Upcoming Targets


Fixes and Changes

2966: Add kw24 support https://github.com/ARMmbed/mbed-os/pull/2966
3068: MultiTech mDot - clean up PeripheralPins.c and add new pin names https://github.com/ARMmbed/mbed-os/pull/3068
3089: Kinetis HAL: Remove clock initialization code from serial and ticker https://github.com/ARMmbed/mbed-os/pull/3089
2943: [NRF5] NVIC_SetVector functionality https://github.com/ARMmbed/mbed-os/pull/2943
2938: InterruptIn changes in NCS36510 HAL. https://github.com/ARMmbed/mbed-os/pull/2938
3108: Fix sleep function for NRF52. https://github.com/ARMmbed/mbed-os/pull/3108
3076: STM32F1: Correct timer master value reading https://github.com/ARMmbed/mbed-os/pull/3076
3085: Add LOWPOWERTIMER capability for NUCLEO_F303ZE https://github.com/ARMmbed/mbed-os/pull/3085
3046: [BEETLE] Update BLE stack on Beetle board https://github.com/ARMmbed/mbed-os/pull/3046
3122: [Silicon Labs] Update of Silicon Labs HAL https://github.com/ARMmbed/mbed-os/pull/3122
3022: OnSemi RAM usage fix https://github.com/ARMmbed/mbed-os/pull/3022
3121: STM32F3: Correct UART4 and UART5 defines when using DEVICE_SERIAL_ASYNCH https://github.com/ARMmbed/mbed-os/pull/3121
3142: Targets- NUMAKER_PFM_NUC47216 remove mbed 2 https://github.com/ARMmbed/mbed-os/pull/3142

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
<> 128:9bcdf88f62b0 19 #define MBED_LIBRARY_VERSION 128
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
<> 128:9bcdf88f62b0 26 #include "netsocket/nsapi.h"
Kojto 123:b0220dba8be7 27 #endif
bogdanm 65:5798e58a58b1 28
<> 128:9bcdf88f62b0 29 #if MBED_CONF_EVENTS_PRESENT
<> 128:9bcdf88f62b0 30 #include "events/mbed_events.h"
<> 128:9bcdf88f62b0 31 #endif
<> 128:9bcdf88f62b0 32
<> 128:9bcdf88f62b0 33 #include "platform/toolchain.h"
<> 128:9bcdf88f62b0 34 #include "platform/platform.h"
bogdanm 65:5798e58a58b1 35
bogdanm 65:5798e58a58b1 36 // Useful C libraries
bogdanm 65:5798e58a58b1 37 #include <math.h>
bogdanm 65:5798e58a58b1 38 #include <time.h>
bogdanm 65:5798e58a58b1 39
bogdanm 65:5798e58a58b1 40 // mbed Debug libraries
<> 128:9bcdf88f62b0 41 #include "platform/mbed_error.h"
<> 128:9bcdf88f62b0 42 #include "platform/mbed_interface.h"
<> 128:9bcdf88f62b0 43 #include "platform/mbed_assert.h"
bogdanm 65:5798e58a58b1 44
bogdanm 65:5798e58a58b1 45 // mbed Peripheral components
<> 128:9bcdf88f62b0 46 #include "drivers/DigitalIn.h"
<> 128:9bcdf88f62b0 47 #include "drivers/DigitalOut.h"
<> 128:9bcdf88f62b0 48 #include "drivers/DigitalInOut.h"
<> 128:9bcdf88f62b0 49 #include "drivers/BusIn.h"
<> 128:9bcdf88f62b0 50 #include "drivers/BusOut.h"
<> 128:9bcdf88f62b0 51 #include "drivers/BusInOut.h"
<> 128:9bcdf88f62b0 52 #include "drivers/PortIn.h"
<> 128:9bcdf88f62b0 53 #include "drivers/PortInOut.h"
<> 128:9bcdf88f62b0 54 #include "drivers/PortOut.h"
<> 128:9bcdf88f62b0 55 #include "drivers/AnalogIn.h"
<> 128:9bcdf88f62b0 56 #include "drivers/AnalogOut.h"
<> 128:9bcdf88f62b0 57 #include "drivers/PwmOut.h"
<> 128:9bcdf88f62b0 58 #include "drivers/Serial.h"
<> 128:9bcdf88f62b0 59 #include "drivers/SPI.h"
<> 128:9bcdf88f62b0 60 #include "drivers/SPISlave.h"
<> 128:9bcdf88f62b0 61 #include "drivers/I2C.h"
<> 128:9bcdf88f62b0 62 #include "drivers/I2CSlave.h"
<> 128:9bcdf88f62b0 63 #include "drivers/Ethernet.h"
<> 128:9bcdf88f62b0 64 #include "drivers/CAN.h"
<> 128:9bcdf88f62b0 65 #include "drivers/RawSerial.h"
bogdanm 65:5798e58a58b1 66
bogdanm 65:5798e58a58b1 67 // mbed Internal components
<> 128:9bcdf88f62b0 68 #include "drivers/Timer.h"
<> 128:9bcdf88f62b0 69 #include "drivers/Ticker.h"
<> 128:9bcdf88f62b0 70 #include "drivers/Timeout.h"
<> 128:9bcdf88f62b0 71 #include "drivers/LowPowerTimeout.h"
<> 128:9bcdf88f62b0 72 #include "drivers/LowPowerTicker.h"
<> 128:9bcdf88f62b0 73 #include "drivers/LowPowerTimer.h"
<> 128:9bcdf88f62b0 74 #include "drivers/LocalFileSystem.h"
<> 128:9bcdf88f62b0 75 #include "drivers/InterruptIn.h"
<> 128:9bcdf88f62b0 76 #include "platform/wait_api.h"
<> 128:9bcdf88f62b0 77 #include "hal/sleep_api.h"
<> 128:9bcdf88f62b0 78 #include "platform/rtc_time.h"
bogdanm 65:5798e58a58b1 79
Kojto 122:f9eeca106725 80 // mbed Non-hardware components
<> 128:9bcdf88f62b0 81 #include "platform/Callback.h"
<> 128:9bcdf88f62b0 82 #include "platform/FunctionPointer.h"
Kojto 122:f9eeca106725 83
bogdanm 65:5798e58a58b1 84 using namespace mbed;
bogdanm 65:5798e58a58b1 85 using namespace std;
bogdanm 65:5798e58a58b1 86
bogdanm 65:5798e58a58b1 87 #endif