mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mbed.h Source File

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 #include "platform/mbed_version.h"
00020 
00021 #if MBED_CONF_RTOS_PRESENT
00022 #include "rtos/rtos.h"
00023 #endif
00024 
00025 #if MBED_CONF_NSAPI_PRESENT
00026 #include "netsocket/nsapi.h"
00027 #include "netsocket/nsapi_ppp.h"
00028 #endif
00029 
00030 #if MBED_CONF_EVENTS_PRESENT
00031 #include "events/mbed_events.h"
00032 #endif
00033 
00034 #if MBED_CONF_FILESYSTEM_PRESENT
00035 #include "filesystem/mbed_filesystem.h"
00036 #endif
00037 
00038 #include "platform/mbed_toolchain.h"
00039 #include "platform/platform.h"
00040 #include "platform/mbed_application.h"
00041 
00042 // Useful C libraries
00043 #include <math.h>
00044 #include <time.h>
00045 
00046 // mbed Debug libraries
00047 #include "platform/mbed_error.h"
00048 #include "platform/mbed_interface.h"
00049 #include "platform/mbed_assert.h"
00050 #include "platform/mbed_debug.h"
00051 
00052 // mbed Peripheral components
00053 #include "drivers/DigitalIn.h"
00054 #include "drivers/DigitalOut.h"
00055 #include "drivers/DigitalInOut.h"
00056 #include "drivers/BusIn.h"
00057 #include "drivers/BusOut.h"
00058 #include "drivers/BusInOut.h"
00059 #include "drivers/PortIn.h"
00060 #include "drivers/PortInOut.h"
00061 #include "drivers/PortOut.h"
00062 #include "drivers/AnalogIn.h"
00063 #include "drivers/AnalogOut.h"
00064 #include "drivers/PwmOut.h"
00065 #include "drivers/Serial.h"
00066 #include "drivers/SPI.h"
00067 #include "drivers/SPISlave.h"
00068 #include "drivers/I2C.h"
00069 #include "drivers/I2CSlave.h"
00070 #include "drivers/Ethernet.h"
00071 #include "drivers/CAN.h"
00072 #include "drivers/RawSerial.h"
00073 #include "drivers/UARTSerial.h"
00074 #include "drivers/FlashIAP.h"
00075 #include "drivers/MbedCRC.h"
00076 #include "drivers/QSPI.h"
00077 
00078 // mbed Internal components
00079 #include "drivers/Timer.h"
00080 #include "drivers/Ticker.h"
00081 #include "drivers/Timeout.h"
00082 #include "drivers/LowPowerTimeout.h"
00083 #include "drivers/LowPowerTicker.h"
00084 #include "drivers/LowPowerTimer.h"
00085 #include "platform/LocalFileSystem.h"
00086 #include "drivers/InterruptIn.h"
00087 #include "platform/mbed_wait_api.h"
00088 #include "hal/sleep_api.h"
00089 #include "platform/mbed_power_mgmt.h"
00090 #include "platform/mbed_rtc_time.h"
00091 #include "platform/mbed_poll.h"
00092 #include "platform/ATCmdParser.h"
00093 #include "platform/FileSystemHandle.h"
00094 #include "platform/FileHandle.h"
00095 #include "platform/DirHandle.h"
00096 #include "platform/CriticalSectionLock.h"
00097 #include "platform/DeepSleepLock.h"
00098 #include "platform/ScopedRomWriteLock.h"
00099 #include "platform/ScopedRamExecutionLock.h"
00100 #include "platform/mbed_stats.h"
00101 
00102 // mbed Non-hardware components
00103 #include "platform/Callback.h"
00104 #include "platform/FunctionPointer.h"
00105 #include "platform/ScopedLock.h"
00106 
00107 #ifndef MBED_NO_GLOBAL_USING_DIRECTIVE
00108 using namespace mbed;
00109 using namespace std;
00110 #endif
00111 
00112 #endif