This fork captures the mbed lib v125 for ease of integration into older projects.
Fork of mbed-dev by
api/mbed.h@187:92cbb9eec47b, 2018-07-20 (annotated)
- Committer:
- apluscw
- Date:
- Fri Jul 20 21:24:42 2018 +0000
- Revision:
- 187:92cbb9eec47b
Mbed library with source code from mbed lib v125. Posted to ease integration with some older projects.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
apluscw | 187:92cbb9eec47b | 1 | /* mbed Microcontroller Library |
apluscw | 187:92cbb9eec47b | 2 | * Copyright (c) 2006-2013 ARM Limited |
apluscw | 187:92cbb9eec47b | 3 | * |
apluscw | 187:92cbb9eec47b | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
apluscw | 187:92cbb9eec47b | 5 | * you may not use this file except in compliance with the License. |
apluscw | 187:92cbb9eec47b | 6 | * You may obtain a copy of the License at |
apluscw | 187:92cbb9eec47b | 7 | * |
apluscw | 187:92cbb9eec47b | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
apluscw | 187:92cbb9eec47b | 9 | * |
apluscw | 187:92cbb9eec47b | 10 | * Unless required by applicable law or agreed to in writing, software |
apluscw | 187:92cbb9eec47b | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
apluscw | 187:92cbb9eec47b | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
apluscw | 187:92cbb9eec47b | 13 | * See the License for the specific language governing permissions and |
apluscw | 187:92cbb9eec47b | 14 | * limitations under the License. |
apluscw | 187:92cbb9eec47b | 15 | */ |
apluscw | 187:92cbb9eec47b | 16 | #ifndef MBED_H |
apluscw | 187:92cbb9eec47b | 17 | #define MBED_H |
apluscw | 187:92cbb9eec47b | 18 | |
apluscw | 187:92cbb9eec47b | 19 | #define MBED_LIBRARY_VERSION 125 |
apluscw | 187:92cbb9eec47b | 20 | |
apluscw | 187:92cbb9eec47b | 21 | #if MBED_CONF_RTOS_PRESENT |
apluscw | 187:92cbb9eec47b | 22 | #include "rtos/rtos.h" |
apluscw | 187:92cbb9eec47b | 23 | #endif |
apluscw | 187:92cbb9eec47b | 24 | |
apluscw | 187:92cbb9eec47b | 25 | #if MBED_CONF_NSAPI_PRESENT |
apluscw | 187:92cbb9eec47b | 26 | #include "network-socket/nsapi.h" |
apluscw | 187:92cbb9eec47b | 27 | #endif |
apluscw | 187:92cbb9eec47b | 28 | |
apluscw | 187:92cbb9eec47b | 29 | #include "toolchain.h" |
apluscw | 187:92cbb9eec47b | 30 | #include "platform.h" |
apluscw | 187:92cbb9eec47b | 31 | |
apluscw | 187:92cbb9eec47b | 32 | // Useful C libraries |
apluscw | 187:92cbb9eec47b | 33 | #include <math.h> |
apluscw | 187:92cbb9eec47b | 34 | #include <time.h> |
apluscw | 187:92cbb9eec47b | 35 | |
apluscw | 187:92cbb9eec47b | 36 | // mbed Debug libraries |
apluscw | 187:92cbb9eec47b | 37 | #include "mbed_error.h" |
apluscw | 187:92cbb9eec47b | 38 | #include "mbed_interface.h" |
apluscw | 187:92cbb9eec47b | 39 | #include "mbed_assert.h" |
apluscw | 187:92cbb9eec47b | 40 | |
apluscw | 187:92cbb9eec47b | 41 | // mbed Peripheral components |
apluscw | 187:92cbb9eec47b | 42 | #include "DigitalIn.h" |
apluscw | 187:92cbb9eec47b | 43 | #include "DigitalOut.h" |
apluscw | 187:92cbb9eec47b | 44 | #include "DigitalInOut.h" |
apluscw | 187:92cbb9eec47b | 45 | #include "BusIn.h" |
apluscw | 187:92cbb9eec47b | 46 | #include "BusOut.h" |
apluscw | 187:92cbb9eec47b | 47 | #include "BusInOut.h" |
apluscw | 187:92cbb9eec47b | 48 | #include "PortIn.h" |
apluscw | 187:92cbb9eec47b | 49 | #include "PortInOut.h" |
apluscw | 187:92cbb9eec47b | 50 | #include "PortOut.h" |
apluscw | 187:92cbb9eec47b | 51 | #include "AnalogIn.h" |
apluscw | 187:92cbb9eec47b | 52 | #include "AnalogOut.h" |
apluscw | 187:92cbb9eec47b | 53 | #include "PwmOut.h" |
apluscw | 187:92cbb9eec47b | 54 | #include "Serial.h" |
apluscw | 187:92cbb9eec47b | 55 | #include "SPI.h" |
apluscw | 187:92cbb9eec47b | 56 | #include "SPISlave.h" |
apluscw | 187:92cbb9eec47b | 57 | #include "I2C.h" |
apluscw | 187:92cbb9eec47b | 58 | #include "I2CSlave.h" |
apluscw | 187:92cbb9eec47b | 59 | #include "Ethernet.h" |
apluscw | 187:92cbb9eec47b | 60 | #include "CAN.h" |
apluscw | 187:92cbb9eec47b | 61 | #include "RawSerial.h" |
apluscw | 187:92cbb9eec47b | 62 | |
apluscw | 187:92cbb9eec47b | 63 | // mbed Internal components |
apluscw | 187:92cbb9eec47b | 64 | #include "Timer.h" |
apluscw | 187:92cbb9eec47b | 65 | #include "Ticker.h" |
apluscw | 187:92cbb9eec47b | 66 | #include "Timeout.h" |
apluscw | 187:92cbb9eec47b | 67 | #include "LowPowerTimeout.h" |
apluscw | 187:92cbb9eec47b | 68 | #include "LowPowerTicker.h" |
apluscw | 187:92cbb9eec47b | 69 | #include "LowPowerTimer.h" |
apluscw | 187:92cbb9eec47b | 70 | #include "LocalFileSystem.h" |
apluscw | 187:92cbb9eec47b | 71 | #include "InterruptIn.h" |
apluscw | 187:92cbb9eec47b | 72 | #include "wait_api.h" |
apluscw | 187:92cbb9eec47b | 73 | #include "sleep_api.h" |
apluscw | 187:92cbb9eec47b | 74 | #include "rtc_time.h" |
apluscw | 187:92cbb9eec47b | 75 | |
apluscw | 187:92cbb9eec47b | 76 | // mbed Non-hardware components |
apluscw | 187:92cbb9eec47b | 77 | #include "Callback.h" |
apluscw | 187:92cbb9eec47b | 78 | #include "FunctionPointer.h" |
apluscw | 187:92cbb9eec47b | 79 | |
apluscw | 187:92cbb9eec47b | 80 | using namespace mbed; |
apluscw | 187:92cbb9eec47b | 81 | using namespace std; |
apluscw | 187:92cbb9eec47b | 82 | |
apluscw | 187:92cbb9eec47b | 83 | #endif |