Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
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 // start --- modified by JH1PJL Dec. 31st, 2019 00020 #if !defined(TARGET_NRF51_DK) 00021 #error "Please select Nordic nRF51-DK (Use as TYBLE16)" 00022 // Please refer following page 00023 // https://os.mbed.com/platforms/Nordic-nRF51-DK/ 00024 #endif 00025 // end ----- modified by JH1PJL Dec. 31st, 2019 00026 00027 #include "platform/mbed_version.h" 00028 00029 #if MBED_CONF_RTOS_API_PRESENT 00030 #include "rtos/rtos.h" 00031 #endif 00032 00033 #if MBED_CONF_NSAPI_PRESENT 00034 #include "netsocket/nsapi.h" 00035 #include "netsocket/nsapi_ppp.h" 00036 #endif 00037 00038 #if MBED_CONF_EVENTS_PRESENT 00039 #include "events/mbed_events.h" 00040 #endif 00041 00042 #if MBED_CONF_FILESYSTEM_PRESENT 00043 #include "filesystem/mbed_filesystem.h" 00044 #endif 00045 00046 #include "platform/mbed_toolchain.h" 00047 #include "platform/platform.h" 00048 #include "platform/mbed_application.h" 00049 00050 // Useful C libraries 00051 #include <math.h> 00052 #include <time.h> 00053 00054 // mbed Debug libraries 00055 #include "platform/mbed_error.h" 00056 #include "platform/mbed_interface.h" 00057 #include "platform/mbed_assert.h" 00058 #include "platform/mbed_debug.h" 00059 00060 // mbed Peripheral components 00061 #include "drivers/DigitalIn.h" 00062 #include "drivers/DigitalOut.h" 00063 #include "drivers/DigitalInOut.h" 00064 #include "drivers/BusIn.h" 00065 #include "drivers/BusOut.h" 00066 #include "drivers/BusInOut.h" 00067 #include "drivers/PortIn.h" 00068 #include "drivers/PortInOut.h" 00069 #include "drivers/PortOut.h" 00070 #include "drivers/AnalogIn.h" 00071 #include "drivers/AnalogOut.h" 00072 #include "drivers/PwmOut.h" 00073 #include "drivers/Serial.h" 00074 #include "drivers/SPI.h" 00075 #include "drivers/SPISlave.h" 00076 #include "drivers/I2C.h" 00077 #include "drivers/I2CSlave.h" 00078 #include "drivers/Ethernet.h" 00079 #include "drivers/CAN.h" 00080 #include "drivers/RawSerial.h" 00081 #include "drivers/UnbufferedSerial.h" 00082 #include "drivers/UARTSerial.h" 00083 #include "drivers/FlashIAP.h" 00084 #include "drivers/MbedCRC.h" 00085 #include "drivers/QSPI.h" 00086 #include "drivers/Watchdog.h" 00087 00088 // mbed Internal components 00089 #include "drivers/ResetReason.h" 00090 #include "drivers/Timer.h" 00091 #include "drivers/Ticker.h" 00092 #include "drivers/Timeout.h" 00093 #include "drivers/LowPowerTimeout.h" 00094 #include "drivers/LowPowerTicker.h" 00095 #include "drivers/LowPowerTimer.h" 00096 #include "platform/LocalFileSystem.h" 00097 #include "drivers/InterruptIn.h" 00098 #include "platform/mbed_wait_api.h" 00099 #include "platform/mbed_thread.h" 00100 #include "hal/sleep_api.h" 00101 #include "platform/mbed_atomic.h" 00102 #include "platform/mbed_power_mgmt.h" 00103 #include "platform/mbed_rtc_time.h" 00104 #include "platform/mbed_poll.h" 00105 #include "platform/ATCmdParser.h" 00106 #include "platform/FileSystemHandle.h" 00107 #include "platform/FileHandle.h" 00108 #include "platform/DirHandle.h" 00109 #include "platform/CriticalSectionLock.h" 00110 #include "platform/DeepSleepLock.h" 00111 #include "platform/ScopedRomWriteLock.h" 00112 #include "platform/ScopedRamExecutionLock.h" 00113 #include "platform/mbed_stats.h" 00114 00115 // mbed Non-hardware components 00116 #include "platform/Callback.h" 00117 #include "platform/ScopedLock.h" 00118 00119 #ifndef MBED_NO_GLOBAL_USING_DIRECTIVE 00120 using namespace mbed; 00121 using namespace std; 00122 #endif 00123 00124 #endif
Generated on Tue Jul 12 2022 13:54:32 by
