mbed

Fork of mbed-dev by mbed official

Committer:
AnnaBridge
Date:
Thu Dec 07 14:01:42 2017 +0000
Revision:
180:b0033dcd6934
Parent:
179:79309dc6340a
Child:
181:96ed750bd169
mbed-dev library. Release version 157

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 149:156823d33999 1 /* mbed Microcontroller Library
<> 149:156823d33999 2 * Copyright (c) 2006-2013 ARM Limited
<> 149:156823d33999 3 *
<> 149:156823d33999 4 * Licensed under the Apache License, Version 2.0 (the "License");
<> 149:156823d33999 5 * you may not use this file except in compliance with the License.
<> 149:156823d33999 6 * You may obtain a copy of the License at
<> 149:156823d33999 7 *
<> 149:156823d33999 8 * http://www.apache.org/licenses/LICENSE-2.0
<> 149:156823d33999 9 *
<> 149:156823d33999 10 * Unless required by applicable law or agreed to in writing, software
<> 149:156823d33999 11 * distributed under the License is distributed on an "AS IS" BASIS,
<> 149:156823d33999 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<> 149:156823d33999 13 * See the License for the specific language governing permissions and
<> 149:156823d33999 14 * limitations under the License.
<> 149:156823d33999 15 */
<> 149:156823d33999 16 #ifndef MBED_H
<> 149:156823d33999 17 #define MBED_H
<> 149:156823d33999 18
AnnaBridge 180:b0033dcd6934 19 #define MBED_LIBRARY_VERSION 157
<> 151:5eaa88a5bcc7 20
<> 151:5eaa88a5bcc7 21 #if MBED_CONF_RTOS_PRESENT
<> 151:5eaa88a5bcc7 22 // RTOS present, this is valid only for mbed OS 5
<> 151:5eaa88a5bcc7 23 #define MBED_MAJOR_VERSION 5
AnnaBridge 175:b96e65c34a4d 24 #define MBED_MINOR_VERSION 6
AnnaBridge 180:b0033dcd6934 25 #define MBED_PATCH_VERSION 6
<> 151:5eaa88a5bcc7 26
<> 151:5eaa88a5bcc7 27 #else
<> 151:5eaa88a5bcc7 28 // mbed 2
<> 151:5eaa88a5bcc7 29 #define MBED_MAJOR_VERSION 2
<> 151:5eaa88a5bcc7 30 #define MBED_MINOR_VERSION 0
<> 151:5eaa88a5bcc7 31 #define MBED_PATCH_VERSION MBED_LIBRARY_VERSION
<> 151:5eaa88a5bcc7 32 #endif
<> 151:5eaa88a5bcc7 33
<> 151:5eaa88a5bcc7 34 #define MBED_ENCODE_VERSION(major, minor, patch) ((major)*10000 + (minor)*100 + (patch))
<> 151:5eaa88a5bcc7 35 #define MBED_VERSION MBED_ENCODE_VERSION(MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION)
<> 149:156823d33999 36
<> 149:156823d33999 37 #if MBED_CONF_RTOS_PRESENT
<> 149:156823d33999 38 #include "rtos/rtos.h"
<> 149:156823d33999 39 #endif
<> 149:156823d33999 40
<> 149:156823d33999 41 #if MBED_CONF_NSAPI_PRESENT
<> 149:156823d33999 42 #include "netsocket/nsapi.h"
AnnaBridge 167:e84263d55307 43 #include "netsocket/nsapi_ppp.h"
<> 149:156823d33999 44 #endif
<> 149:156823d33999 45
<> 149:156823d33999 46 #if MBED_CONF_EVENTS_PRESENT
<> 149:156823d33999 47 #include "events/mbed_events.h"
<> 149:156823d33999 48 #endif
<> 149:156823d33999 49
<> 160:d5399cc887bb 50 #if MBED_CONF_FILESYSTEM_PRESENT
<> 160:d5399cc887bb 51 #include "filesystem/mbed_filesystem.h"
<> 160:d5399cc887bb 52 #endif
<> 160:d5399cc887bb 53
<> 160:d5399cc887bb 54 #include "platform/mbed_toolchain.h"
<> 149:156823d33999 55 #include "platform/platform.h"
<> 160:d5399cc887bb 56 #include "platform/mbed_application.h"
<> 149:156823d33999 57
<> 149:156823d33999 58 // Useful C libraries
<> 149:156823d33999 59 #include <math.h>
<> 149:156823d33999 60 #include <time.h>
<> 149:156823d33999 61
<> 149:156823d33999 62 // mbed Debug libraries
<> 149:156823d33999 63 #include "platform/mbed_error.h"
<> 149:156823d33999 64 #include "platform/mbed_interface.h"
<> 149:156823d33999 65 #include "platform/mbed_assert.h"
AnnaBridge 167:e84263d55307 66 #include "platform/mbed_debug.h"
<> 149:156823d33999 67
<> 149:156823d33999 68 // mbed Peripheral components
<> 149:156823d33999 69 #include "drivers/DigitalIn.h"
<> 149:156823d33999 70 #include "drivers/DigitalOut.h"
<> 149:156823d33999 71 #include "drivers/DigitalInOut.h"
<> 149:156823d33999 72 #include "drivers/BusIn.h"
<> 149:156823d33999 73 #include "drivers/BusOut.h"
<> 149:156823d33999 74 #include "drivers/BusInOut.h"
<> 149:156823d33999 75 #include "drivers/PortIn.h"
<> 149:156823d33999 76 #include "drivers/PortInOut.h"
<> 149:156823d33999 77 #include "drivers/PortOut.h"
<> 149:156823d33999 78 #include "drivers/AnalogIn.h"
<> 149:156823d33999 79 #include "drivers/AnalogOut.h"
<> 149:156823d33999 80 #include "drivers/PwmOut.h"
<> 149:156823d33999 81 #include "drivers/Serial.h"
<> 149:156823d33999 82 #include "drivers/SPI.h"
<> 149:156823d33999 83 #include "drivers/SPISlave.h"
<> 149:156823d33999 84 #include "drivers/I2C.h"
<> 149:156823d33999 85 #include "drivers/I2CSlave.h"
<> 149:156823d33999 86 #include "drivers/Ethernet.h"
<> 149:156823d33999 87 #include "drivers/CAN.h"
<> 149:156823d33999 88 #include "drivers/RawSerial.h"
AnnaBridge 167:e84263d55307 89 #include "drivers/UARTSerial.h"
<> 160:d5399cc887bb 90 #include "drivers/FlashIAP.h"
<> 149:156823d33999 91
<> 149:156823d33999 92 // mbed Internal components
<> 149:156823d33999 93 #include "drivers/Timer.h"
<> 149:156823d33999 94 #include "drivers/Ticker.h"
<> 149:156823d33999 95 #include "drivers/Timeout.h"
<> 149:156823d33999 96 #include "drivers/LowPowerTimeout.h"
<> 149:156823d33999 97 #include "drivers/LowPowerTicker.h"
<> 149:156823d33999 98 #include "drivers/LowPowerTimer.h"
AnnaBridge 167:e84263d55307 99 #include "platform/LocalFileSystem.h"
<> 149:156823d33999 100 #include "drivers/InterruptIn.h"
<> 160:d5399cc887bb 101 #include "platform/mbed_wait_api.h"
<> 149:156823d33999 102 #include "hal/sleep_api.h"
<> 160:d5399cc887bb 103 #include "platform/mbed_sleep.h"
<> 160:d5399cc887bb 104 #include "platform/mbed_rtc_time.h"
AnnaBridge 167:e84263d55307 105 #include "platform/mbed_poll.h"
AnnaBridge 167:e84263d55307 106 #include "platform/ATCmdParser.h"
AnnaBridge 167:e84263d55307 107 #include "platform/FileSystemHandle.h"
AnnaBridge 167:e84263d55307 108 #include "platform/FileHandle.h"
AnnaBridge 167:e84263d55307 109 #include "platform/DirHandle.h"
AnnaBridge 175:b96e65c34a4d 110 #include "platform/CriticalSectionLock.h"
AnnaBridge 175:b96e65c34a4d 111 #include "platform/DeepSleepLock.h"
<> 149:156823d33999 112
<> 149:156823d33999 113 // mbed Non-hardware components
<> 149:156823d33999 114 #include "platform/Callback.h"
<> 149:156823d33999 115 #include "platform/FunctionPointer.h"
<> 149:156823d33999 116
<> 149:156823d33999 117 using namespace mbed;
<> 149:156823d33999 118 using namespace std;
<> 149:156823d33999 119
<> 149:156823d33999 120 #endif