Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
mbed.h
00001 /* mbed Microcontroller Library 00002 * Copyright (c) 2006-2013 ARM Limited 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #ifndef MBED_H 00017 #define MBED_H 00018 00019 #define MBED_LIBRARY_VERSION 159 00020 00021 #if MBED_CONF_RTOS_PRESENT 00022 // RTOS present, this is valid only for mbed OS 5 00023 #define MBED_MAJOR_VERSION 5 00024 #define MBED_MINOR_VERSION 7 00025 #define MBED_PATCH_VERSION 5 00026 00027 #else 00028 // mbed 2 00029 #define MBED_MAJOR_VERSION 2 00030 #define MBED_MINOR_VERSION 0 00031 #define MBED_PATCH_VERSION MBED_LIBRARY_VERSION 00032 #endif 00033 00034 #define MBED_ENCODE_VERSION(major, minor, patch) ((major)*10000 + (minor)*100 + (patch)) 00035 #define MBED_VERSION MBED_ENCODE_VERSION(MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION) 00036 #if MBED_CONF_RTOS_PRESENT 00037 #include "rtos/rtos.h" 00038 #endif 00039 00040 #if MBED_CONF_NSAPI_PRESENT 00041 #include "netsocket/nsapi.h" 00042 #include "netsocket/nsapi_ppp.h" 00043 #endif 00044 00045 #if MBED_CONF_EVENTS_PRESENT 00046 #include "events/mbed_events.h" 00047 #endif 00048 00049 #if MBED_CONF_FILESYSTEM_PRESENT 00050 #include "filesystem/mbed_filesystem.h" 00051 #endif 00052 00053 #include "platform/mbed_toolchain.h" 00054 #include "platform/platform.h" 00055 #include "platform/mbed_application.h" 00056 00057 // Useful C libraries 00058 #include <math.h> 00059 #include <time.h> 00060 00061 // mbed Debug libraries 00062 #include "platform/mbed_error.h" 00063 #include "platform/mbed_interface.h" 00064 #include "platform/mbed_assert.h" 00065 #include "platform/mbed_debug.h" 00066 00067 // mbed Peripheral components 00068 #include "drivers/DigitalIn.h" 00069 #include "drivers/DigitalOut.h" 00070 #include "drivers/DigitalInOut.h" 00071 #include "drivers/BusIn.h" 00072 #include "drivers/BusOut.h" 00073 #include "drivers/BusInOut.h" 00074 #include "drivers/PortIn.h" 00075 #include "drivers/PortInOut.h" 00076 #include "drivers/PortOut.h" 00077 #include "drivers/AnalogIn.h" 00078 #include "drivers/AnalogOut.h" 00079 #include "drivers/PwmOut.h" 00080 #include "drivers/Serial.h" 00081 #include "drivers/SPI.h" 00082 #include "drivers/SPISlave.h" 00083 #include "drivers/I2C.h" 00084 #include "drivers/I2CSlave.h" 00085 #include "drivers/Ethernet.h" 00086 #include "drivers/CAN.h" 00087 #include "drivers/RawSerial.h" 00088 #include "drivers/UARTSerial.h" 00089 #include "drivers/FlashIAP.h" 00090 00091 // mbed Internal components 00092 #include "drivers/Timer.h" 00093 #include "drivers/Ticker.h" 00094 #include "drivers/Timeout.h" 00095 #include "drivers/LowPowerTimeout.h" 00096 #include "drivers/LowPowerTicker.h" 00097 #include "drivers/LowPowerTimer.h" 00098 #include "platform/LocalFileSystem.h" 00099 #include "drivers/InterruptIn.h" 00100 #include "platform/mbed_wait_api.h" 00101 #include "hal/sleep_api.h" 00102 #include "platform/mbed_sleep.h" 00103 #include "platform/mbed_rtc_time.h" 00104 #include "platform/mbed_poll.h" 00105 #include "platform/ATCmdParser.h" 00106 #include "platform/FileSystemHandle.h" 00107 #include "platform/FileHandle.h" 00108 #include "platform/DirHandle.h" 00109 #include "platform/CriticalSectionLock.h" 00110 #include "platform/DeepSleepLock.h" 00111 00112 // mbed Non-hardware components 00113 #include "platform/Callback.h" 00114 #include "platform/FunctionPointer.h" 00115 00116 using namespace mbed; 00117 using namespace std; 00118 00119 #endif
Generated on Tue Jul 12 2022 18:02:51 by
1.7.2
