inport from local

Dependents:   Hobbyking_Cheetah_0511

Committer:
NYX
Date:
Mon Mar 16 06:35:48 2020 +0000
Revision:
0:85b3fd62ea1a
reinport to mbed;

Who changed what in which revision?

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