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:
Tue Nov 08 17:28:34 2016 +0000
Revision:
129:0ab6a29f35bf
Parent:
128:9bcdf88f62b0
Child:
130:d75b3fe1f5cb
Release 129 of the mbed library

Ports for Upcoming Targets

3011: Add u-blox Sara-N target. https://github.com/ARMmbed/mbed-os/pull/3011
3099: MAX32625 https://github.com/ARMmbed/mbed-os/pull/3099
3151: Add support for FRDM-K82F https://github.com/ARMmbed/mbed-os/pull/3151
3177: New mcu k22512 fixing pr 3136 https://github.com/ARMmbed/mbed-os/pull/3177

Fixes and Changes

3008: NUCLEO_F072RB: Fix wrong timer channel number on pwm PB_5 pin https://github.com/ARMmbed/mbed-os/pull/3008
3013: STM32xx - Change how the ADC internal pins are checked before pinmap_ https://github.com/ARMmbed/mbed-os/pull/3013
3041: [nRF5] - added implementation of API of serial port flow control configuration. https://github.com/ARMmbed/mbed-os/pull/3041
3084: [nrf5] fix in Digital I/O : a gpioe pin was uninitialized badly https://github.com/ARMmbed/mbed-os/pull/3084
3009: TRNG enabled. TRNG APIs implemented. REV A/B/C/D flags removed. Warnings removed https://github.com/ARMmbed/mbed-os/pull/3009
3074: Target stm init gcc alignement https://github.com/ARMmbed/mbed-os/pull/3074
2988: Update of can_api.c fixing #2987 https://github.com/ARMmbed/mbed-os/pull/2988
3173: [Exporters] Add a device_name to microbit entry in targets.json https://github.com/ARMmbed/mbed-os/pull/3173
2969: [nRF52] - switch irq priorities of driver handlers to the lowest level https://github.com/ARMmbed/mbed-os/pull/2969
3184: #3183 Compiler warning in trng_api.c with K64F https://github.com/ARMmbed/mbed-os/pull/3184
3104: [NuMaker] Support CAN and fix PWM CLK error https://github.com/ARMmbed/mbed-os/pull/3104
3186: MultiTech mDot - add back SPI3 pins https://github.com/ARMmbed/mbed-os/pull/3186
3075: nsapi - Add standardized return types for size and errors https://github.com/ARMmbed/mbed-os/pull/3075
3221: u-blox odin w2 drivers update https://github.com/ARMmbed/mbed-os/pull/3221

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
<> 129:0ab6a29f35bf 19 #define MBED_LIBRARY_VERSION 129
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