CDY version that shares functionality with Counter
Dependencies: SDFileSystem_HelloWorld mbed FATFileSystem
mbed/mbed.h@3:c547dba5d39b, 2018-11-05 (annotated)
- Committer:
- Charles David Young
- Date:
- Mon Nov 05 09:52:17 2018 -0700
- Revision:
- 3:c547dba5d39b
- Parent:
- 0:aa13e1c335cd
debug
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Charles David Young |
0:aa13e1c335cd | 1 | /* mbed Microcontroller Library |
Charles David Young |
0:aa13e1c335cd | 2 | * Copyright (c) 2006-2013 ARM Limited |
Charles David Young |
0:aa13e1c335cd | 3 | * |
Charles David Young |
0:aa13e1c335cd | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Charles David Young |
0:aa13e1c335cd | 5 | * you may not use this file except in compliance with the License. |
Charles David Young |
0:aa13e1c335cd | 6 | * You may obtain a copy of the License at |
Charles David Young |
0:aa13e1c335cd | 7 | * |
Charles David Young |
0:aa13e1c335cd | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Charles David Young |
0:aa13e1c335cd | 9 | * |
Charles David Young |
0:aa13e1c335cd | 10 | * Unless required by applicable law or agreed to in writing, software |
Charles David Young |
0:aa13e1c335cd | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Charles David Young |
0:aa13e1c335cd | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Charles David Young |
0:aa13e1c335cd | 13 | * See the License for the specific language governing permissions and |
Charles David Young |
0:aa13e1c335cd | 14 | * limitations under the License. |
Charles David Young |
0:aa13e1c335cd | 15 | */ |
Charles David Young |
0:aa13e1c335cd | 16 | #ifndef MBED_H |
Charles David Young |
0:aa13e1c335cd | 17 | #define MBED_H |
Charles David Young |
0:aa13e1c335cd | 18 | |
Charles David Young |
0:aa13e1c335cd | 19 | #define MBED_LIBRARY_VERSION 137 |
Charles David Young |
0:aa13e1c335cd | 20 | |
Charles David Young |
0:aa13e1c335cd | 21 | #if MBED_CONF_RTOS_PRESENT |
Charles David Young |
0:aa13e1c335cd | 22 | // RTOS present, this is valid only for mbed OS 5 |
Charles David Young |
0:aa13e1c335cd | 23 | #define MBED_MAJOR_VERSION 5 |
Charles David Young |
0:aa13e1c335cd | 24 | #define MBED_MINOR_VERSION 3 |
Charles David Young |
0:aa13e1c335cd | 25 | #define MBED_PATCH_VERSION 6 |
Charles David Young |
0:aa13e1c335cd | 26 | |
Charles David Young |
0:aa13e1c335cd | 27 | #else |
Charles David Young |
0:aa13e1c335cd | 28 | // mbed 2 |
Charles David Young |
0:aa13e1c335cd | 29 | #define MBED_MAJOR_VERSION 2 |
Charles David Young |
0:aa13e1c335cd | 30 | #define MBED_MINOR_VERSION 0 |
Charles David Young |
0:aa13e1c335cd | 31 | #define MBED_PATCH_VERSION MBED_LIBRARY_VERSION |
Charles David Young |
0:aa13e1c335cd | 32 | #endif |
Charles David Young |
0:aa13e1c335cd | 33 | |
Charles David Young |
0:aa13e1c335cd | 34 | #define MBED_ENCODE_VERSION(major, minor, patch) ((major)*10000 + (minor)*100 + (patch)) |
Charles David Young |
0:aa13e1c335cd | 35 | |
Charles David Young |
0:aa13e1c335cd | 36 | #define MBED_VERSION MBED_ENCODE_VERSION(MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION) |
Charles David Young |
0:aa13e1c335cd | 37 | |
Charles David Young |
0:aa13e1c335cd | 38 | #if MBED_CONF_RTOS_PRESENT |
Charles David Young |
0:aa13e1c335cd | 39 | #include "rtos/rtos.h" |
Charles David Young |
0:aa13e1c335cd | 40 | #endif |
Charles David Young |
0:aa13e1c335cd | 41 | |
Charles David Young |
0:aa13e1c335cd | 42 | #if MBED_CONF_NSAPI_PRESENT |
Charles David Young |
0:aa13e1c335cd | 43 | #include "netsocket/nsapi.h" |
Charles David Young |
0:aa13e1c335cd | 44 | #endif |
Charles David Young |
0:aa13e1c335cd | 45 | |
Charles David Young |
0:aa13e1c335cd | 46 | #if MBED_CONF_EVENTS_PRESENT |
Charles David Young |
0:aa13e1c335cd | 47 | #include "events/mbed_events.h" |
Charles David Young |
0:aa13e1c335cd | 48 | #endif |
Charles David Young |
0:aa13e1c335cd | 49 | |
Charles David Young |
0:aa13e1c335cd | 50 | #include "platform/toolchain.h" |
Charles David Young |
0:aa13e1c335cd | 51 | #include "platform/platform.h" |
Charles David Young |
0:aa13e1c335cd | 52 | |
Charles David Young |
0:aa13e1c335cd | 53 | // Useful C libraries |
Charles David Young |
0:aa13e1c335cd | 54 | #include <math.h> |
Charles David Young |
0:aa13e1c335cd | 55 | #include <time.h> |
Charles David Young |
0:aa13e1c335cd | 56 | |
Charles David Young |
0:aa13e1c335cd | 57 | // mbed Debug libraries |
Charles David Young |
0:aa13e1c335cd | 58 | #include "platform/mbed_error.h" |
Charles David Young |
0:aa13e1c335cd | 59 | #include "platform/mbed_interface.h" |
Charles David Young |
0:aa13e1c335cd | 60 | #include "platform/mbed_assert.h" |
Charles David Young |
0:aa13e1c335cd | 61 | |
Charles David Young |
0:aa13e1c335cd | 62 | // mbed Peripheral components |
Charles David Young |
0:aa13e1c335cd | 63 | #include "drivers/DigitalIn.h" |
Charles David Young |
0:aa13e1c335cd | 64 | #include "drivers/DigitalOut.h" |
Charles David Young |
0:aa13e1c335cd | 65 | #include "drivers/DigitalInOut.h" |
Charles David Young |
0:aa13e1c335cd | 66 | #include "drivers/BusIn.h" |
Charles David Young |
0:aa13e1c335cd | 67 | #include "drivers/BusOut.h" |
Charles David Young |
0:aa13e1c335cd | 68 | #include "drivers/BusInOut.h" |
Charles David Young |
0:aa13e1c335cd | 69 | #include "drivers/PortIn.h" |
Charles David Young |
0:aa13e1c335cd | 70 | #include "drivers/PortInOut.h" |
Charles David Young |
0:aa13e1c335cd | 71 | #include "drivers/PortOut.h" |
Charles David Young |
0:aa13e1c335cd | 72 | #include "drivers/AnalogIn.h" |
Charles David Young |
0:aa13e1c335cd | 73 | #include "drivers/AnalogOut.h" |
Charles David Young |
0:aa13e1c335cd | 74 | #include "drivers/PwmOut.h" |
Charles David Young |
0:aa13e1c335cd | 75 | #include "drivers/Serial.h" |
Charles David Young |
0:aa13e1c335cd | 76 | #include "drivers/SPI.h" |
Charles David Young |
0:aa13e1c335cd | 77 | #include "drivers/SPISlave.h" |
Charles David Young |
0:aa13e1c335cd | 78 | #include "drivers/I2C.h" |
Charles David Young |
0:aa13e1c335cd | 79 | #include "drivers/I2CSlave.h" |
Charles David Young |
0:aa13e1c335cd | 80 | #include "drivers/Ethernet.h" |
Charles David Young |
0:aa13e1c335cd | 81 | #include "drivers/CAN.h" |
Charles David Young |
0:aa13e1c335cd | 82 | #include "drivers/RawSerial.h" |
Charles David Young |
0:aa13e1c335cd | 83 | |
Charles David Young |
0:aa13e1c335cd | 84 | // mbed Internal components |
Charles David Young |
0:aa13e1c335cd | 85 | #include "drivers/Timer.h" |
Charles David Young |
0:aa13e1c335cd | 86 | #include "drivers/Ticker.h" |
Charles David Young |
0:aa13e1c335cd | 87 | #include "drivers/Timeout.h" |
Charles David Young |
0:aa13e1c335cd | 88 | #include "drivers/LowPowerTimeout.h" |
Charles David Young |
0:aa13e1c335cd | 89 | #include "drivers/LowPowerTicker.h" |
Charles David Young |
0:aa13e1c335cd | 90 | #include "drivers/LowPowerTimer.h" |
Charles David Young |
0:aa13e1c335cd | 91 | #include "drivers/LocalFileSystem.h" |
Charles David Young |
0:aa13e1c335cd | 92 | #include "drivers/InterruptIn.h" |
Charles David Young |
0:aa13e1c335cd | 93 | #include "platform/wait_api.h" |
Charles David Young |
0:aa13e1c335cd | 94 | #include "hal/sleep_api.h" |
Charles David Young |
0:aa13e1c335cd | 95 | #include "platform/rtc_time.h" |
Charles David Young |
0:aa13e1c335cd | 96 | |
Charles David Young |
0:aa13e1c335cd | 97 | // mbed Non-hardware components |
Charles David Young |
0:aa13e1c335cd | 98 | #include "platform/Callback.h" |
Charles David Young |
0:aa13e1c335cd | 99 | #include "platform/FunctionPointer.h" |
Charles David Young |
0:aa13e1c335cd | 100 | |
Charles David Young |
0:aa13e1c335cd | 101 | using namespace mbed; |
Charles David Young |
0:aa13e1c335cd | 102 | using namespace std; |
Charles David Young |
0:aa13e1c335cd | 103 | |
Charles David Young |
0:aa13e1c335cd | 104 | #endif |