Describes predefine macros for mbed online compiler (armcc)

Committer:
MACRUM
Date:
Thu Mar 16 21:58:09 2017 +0900
Revision:
6:40e873bbc5f7
Add licence header info

Who changed what in which revision?

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