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.
mbed.h@127:25aea2a3f4e3, 2016-09-30 (annotated)
- Committer:
- <>
- Date:
- Fri Sep 30 16:49:46 2016 +0100
- Revision:
- 127:25aea2a3f4e3
- Parent:
- 126:abea610beb85
- Child:
- 128:9bcdf88f62b0
Release 127 of the mbed library
Ports for Upcoming Targets
2669: Added u-blox C029 target https://github.com/ARMmbed/mbed-os/pull/2669
2707: [EFM32] Add IAR support for remaining Silicon Labs targets https://github.com/ARMmbed/mbed-os/pull/2707
2819: MultiTech xDot platform support - 09.26.2016 https://github.com/ARMmbed/mbed-os/pull/2819
2827: include MultiTech xDot in mbed 5 releases https://github.com/ARMmbed/mbed-os/pull/2827
Fixes and Changes
2522: Add CThunk for CM7 https://github.com/ARMmbed/mbed-os/pull/2522
2518: Enable uvisor on Beetle https://github.com/ARMmbed/mbed-os/pull/2518
2571: STM32F7 - Add asynchronous serial https://github.com/ARMmbed/mbed-os/pull/2571
2616: STM32F3xx - Add Serial Flow Control pins + enable it https://github.com/ARMmbed/mbed-os/pull/2616
2619: NUCLEO_L152RE - Add Serial Flow Control https://github.com/ARMmbed/mbed-os/pull/2619
2620: NUCLEO_F429ZI - Add SERIAL_FC macro https://github.com/ARMmbed/mbed-os/pull/2620
2666: [EFM32] Microsecond ticker optimization https://github.com/ARMmbed/mbed-os/pull/2666
2681: STM32F0xx - Add support of ADC internal channels https://github.com/ARMmbed/mbed-os/pull/2681
2687: [NRF5] Add fs_data symbol in data secton for gcc https://github.com/ARMmbed/mbed-os/pull/2687
2696: Add device_has to all nrf51 devices https://github.com/ARMmbed/mbed-os/pull/2696
2703: TARGET_NRF5: Changed 'serial_baud' implementation to support special baud rates. https://github.com/ARMmbed/mbed-os/pull/2703
2704: DISCO_L476VG: add SPI nicknames https://github.com/ARMmbed/mbed-os/pull/2704
2723: KSDK serial_api.c: Fix assertion error for ParityEven https://github.com/ARMmbed/mbed-os/pull/2723
2463: [STM32L0] Add asynchronous serial https://github.com/ARMmbed/mbed-os/pull/2463
2572: Fix STM32F407VG target name and LPC11U6X linker errors https://github.com/ARMmbed/mbed-os/pull/2572
2698: DELTA_DFBM_NQ620 target https://github.com/ARMmbed/mbed-os/pull/2698
2542: Dev spi asynch stm32f4 https://github.com/ARMmbed/mbed-os/pull/2542
2650: STM32F3 - Add low power timer https://github.com/ARMmbed/mbed-os/pull/2650
2415: [STM32F0] Add asynchronous serial https://github.com/ARMmbed/mbed-os/pull/2415
2585: Added support for ADC only pins in LPC43xx https://github.com/ARMmbed/mbed-os/pull/2585
2622: [STM32F4] Add asynchronous I2C https://github.com/ARMmbed/mbed-os/pull/2622
2719: Updated ARM linker scripts for Kinetis platforms that use SDK 2.0 https://github.com/ARMmbed/mbed-os/pull/2719
2728: Added ethernet and enabled IPV4 feature for the EVK-ODIN-W2/C029 target https://github.com/ARMmbed/mbed-os/pull/2728
2747: [LPC11U68] Fix pin interrupt select offset https://github.com/ARMmbed/mbed-os/pull/2747
2751: STM32L0xx - Add Serial Flow Control https://github.com/ARMmbed/mbed-os/pull/2751
2753: [NUCLEO_F767ZI] Add CAN capability https://github.com/ARMmbed/mbed-os/pull/2753
2759: STM32F0 - Add low power timer https://github.com/ARMmbed/mbed-os/pull/2759
2763: STM32L1 - Add low power timer https://github.com/ARMmbed/mbed-os/pull/2763
2764: STM32L4 - Add low power timer https://github.com/ARMmbed/mbed-os/pull/2764
2771: STM32L4 - Update deepsleep implementation https://github.com/ARMmbed/mbed-os/pull/2771
2775: Update KSDK SDHC driver for K64F & K66F https://github.com/ARMmbed/mbed-os/pull/2775
2792: [NUCLEO_F303ZE] MBED-OS5 capability https://github.com/ARMmbed/mbed-os/pull/2792
2762: STM32L0 - Add low power timer https://github.com/ARMmbed/mbed-os/pull/2762
2761: STM32F7 - Add low power timer https://github.com/ARMmbed/mbed-os/pull/2761
Who changed what in which revision?
User | Revision | Line number | New 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 | |
<> | 127:25aea2a3f4e3 | 19 | #define MBED_LIBRARY_VERSION 127 |
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 |