test

Committer:
elijahsj
Date:
Mon Nov 09 00:02:47 2020 -0500
Revision:
1:8a094db1347f
test

Who changed what in which revision?

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