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:
Kojto
Date:
Fri Aug 19 10:17:11 2016 +0100
Revision:
124:2241e3a39974
Parent:
123:b0220dba8be7
Child:
125:2e9cc70d1897
Release 124 of the mbed library

Changes:

- new targets - KL27Z, K66F
- deprecate macro - add since argument
- override new and delete operators to trap errors
- Maxim - i2c and dac bugfixes
- STM - STM32F4 - serial flow enablement, enable async serial
- pwm and analog definition clean-up
- Nordic - NRF51 - fix for overflow in the ticket

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
Kojto 124:2241e3a39974 19 #define MBED_LIBRARY_VERSION 124
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