Marco Zecchini
/
Example_RTOS
Rtos API example
mbed-os/mbed.h@0:9fca2b23d0ba, 2019-02-23 (annotated)
- Committer:
- marcozecchini
- Date:
- Sat Feb 23 12:13:36 2019 +0000
- Revision:
- 0:9fca2b23d0ba
final commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
marcozecchini | 0:9fca2b23d0ba | 1 | /* mbed Microcontroller Library |
marcozecchini | 0:9fca2b23d0ba | 2 | * Copyright (c) 2006-2013 ARM Limited |
marcozecchini | 0:9fca2b23d0ba | 3 | * |
marcozecchini | 0:9fca2b23d0ba | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
marcozecchini | 0:9fca2b23d0ba | 5 | * you may not use this file except in compliance with the License. |
marcozecchini | 0:9fca2b23d0ba | 6 | * You may obtain a copy of the License at |
marcozecchini | 0:9fca2b23d0ba | 7 | * |
marcozecchini | 0:9fca2b23d0ba | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
marcozecchini | 0:9fca2b23d0ba | 9 | * |
marcozecchini | 0:9fca2b23d0ba | 10 | * Unless required by applicable law or agreed to in writing, software |
marcozecchini | 0:9fca2b23d0ba | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
marcozecchini | 0:9fca2b23d0ba | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
marcozecchini | 0:9fca2b23d0ba | 13 | * See the License for the specific language governing permissions and |
marcozecchini | 0:9fca2b23d0ba | 14 | * limitations under the License. |
marcozecchini | 0:9fca2b23d0ba | 15 | */ |
marcozecchini | 0:9fca2b23d0ba | 16 | #ifndef MBED_H |
marcozecchini | 0:9fca2b23d0ba | 17 | #define MBED_H |
marcozecchini | 0:9fca2b23d0ba | 18 | |
marcozecchini | 0:9fca2b23d0ba | 19 | #if MBED_CONF_RTOS_PRESENT |
marcozecchini | 0:9fca2b23d0ba | 20 | #include "rtos/rtos.h" |
marcozecchini | 0:9fca2b23d0ba | 21 | #endif |
marcozecchini | 0:9fca2b23d0ba | 22 | |
marcozecchini | 0:9fca2b23d0ba | 23 | #if MBED_CONF_NSAPI_PRESENT |
marcozecchini | 0:9fca2b23d0ba | 24 | #include "netsocket/nsapi.h" |
marcozecchini | 0:9fca2b23d0ba | 25 | #include "netsocket/nsapi_ppp.h" |
marcozecchini | 0:9fca2b23d0ba | 26 | #endif |
marcozecchini | 0:9fca2b23d0ba | 27 | |
marcozecchini | 0:9fca2b23d0ba | 28 | #if MBED_CONF_EVENTS_PRESENT |
marcozecchini | 0:9fca2b23d0ba | 29 | #include "events/mbed_events.h" |
marcozecchini | 0:9fca2b23d0ba | 30 | #endif |
marcozecchini | 0:9fca2b23d0ba | 31 | |
marcozecchini | 0:9fca2b23d0ba | 32 | #if MBED_CONF_FILESYSTEM_PRESENT |
marcozecchini | 0:9fca2b23d0ba | 33 | #include "filesystem/mbed_filesystem.h" |
marcozecchini | 0:9fca2b23d0ba | 34 | #endif |
marcozecchini | 0:9fca2b23d0ba | 35 | |
marcozecchini | 0:9fca2b23d0ba | 36 | #include "platform/mbed_toolchain.h" |
marcozecchini | 0:9fca2b23d0ba | 37 | #include "platform/platform.h" |
marcozecchini | 0:9fca2b23d0ba | 38 | #include "platform/mbed_application.h" |
marcozecchini | 0:9fca2b23d0ba | 39 | |
marcozecchini | 0:9fca2b23d0ba | 40 | // Useful C libraries |
marcozecchini | 0:9fca2b23d0ba | 41 | #include <math.h> |
marcozecchini | 0:9fca2b23d0ba | 42 | #include <time.h> |
marcozecchini | 0:9fca2b23d0ba | 43 | |
marcozecchini | 0:9fca2b23d0ba | 44 | // mbed Debug libraries |
marcozecchini | 0:9fca2b23d0ba | 45 | #include "platform/mbed_error.h" |
marcozecchini | 0:9fca2b23d0ba | 46 | #include "platform/mbed_interface.h" |
marcozecchini | 0:9fca2b23d0ba | 47 | #include "platform/mbed_assert.h" |
marcozecchini | 0:9fca2b23d0ba | 48 | #include "platform/mbed_debug.h" |
marcozecchini | 0:9fca2b23d0ba | 49 | |
marcozecchini | 0:9fca2b23d0ba | 50 | // mbed Peripheral components |
marcozecchini | 0:9fca2b23d0ba | 51 | #include "drivers/DigitalIn.h" |
marcozecchini | 0:9fca2b23d0ba | 52 | #include "drivers/DigitalOut.h" |
marcozecchini | 0:9fca2b23d0ba | 53 | #include "drivers/DigitalInOut.h" |
marcozecchini | 0:9fca2b23d0ba | 54 | #include "drivers/BusIn.h" |
marcozecchini | 0:9fca2b23d0ba | 55 | #include "drivers/BusOut.h" |
marcozecchini | 0:9fca2b23d0ba | 56 | #include "drivers/BusInOut.h" |
marcozecchini | 0:9fca2b23d0ba | 57 | #include "drivers/PortIn.h" |
marcozecchini | 0:9fca2b23d0ba | 58 | #include "drivers/PortInOut.h" |
marcozecchini | 0:9fca2b23d0ba | 59 | #include "drivers/PortOut.h" |
marcozecchini | 0:9fca2b23d0ba | 60 | #include "drivers/AnalogIn.h" |
marcozecchini | 0:9fca2b23d0ba | 61 | #include "drivers/AnalogOut.h" |
marcozecchini | 0:9fca2b23d0ba | 62 | #include "drivers/PwmOut.h" |
marcozecchini | 0:9fca2b23d0ba | 63 | #include "drivers/Serial.h" |
marcozecchini | 0:9fca2b23d0ba | 64 | #include "drivers/SPI.h" |
marcozecchini | 0:9fca2b23d0ba | 65 | #include "drivers/SPISlave.h" |
marcozecchini | 0:9fca2b23d0ba | 66 | #include "drivers/I2C.h" |
marcozecchini | 0:9fca2b23d0ba | 67 | #include "drivers/I2CSlave.h" |
marcozecchini | 0:9fca2b23d0ba | 68 | #include "drivers/Ethernet.h" |
marcozecchini | 0:9fca2b23d0ba | 69 | #include "drivers/CAN.h" |
marcozecchini | 0:9fca2b23d0ba | 70 | #include "drivers/RawSerial.h" |
marcozecchini | 0:9fca2b23d0ba | 71 | #include "drivers/UARTSerial.h" |
marcozecchini | 0:9fca2b23d0ba | 72 | #include "drivers/FlashIAP.h" |
marcozecchini | 0:9fca2b23d0ba | 73 | |
marcozecchini | 0:9fca2b23d0ba | 74 | // mbed Internal components |
marcozecchini | 0:9fca2b23d0ba | 75 | #include "drivers/Timer.h" |
marcozecchini | 0:9fca2b23d0ba | 76 | #include "drivers/Ticker.h" |
marcozecchini | 0:9fca2b23d0ba | 77 | #include "drivers/Timeout.h" |
marcozecchini | 0:9fca2b23d0ba | 78 | #include "drivers/LowPowerTimeout.h" |
marcozecchini | 0:9fca2b23d0ba | 79 | #include "drivers/LowPowerTicker.h" |
marcozecchini | 0:9fca2b23d0ba | 80 | #include "drivers/LowPowerTimer.h" |
marcozecchini | 0:9fca2b23d0ba | 81 | #include "platform/LocalFileSystem.h" |
marcozecchini | 0:9fca2b23d0ba | 82 | #include "drivers/InterruptIn.h" |
marcozecchini | 0:9fca2b23d0ba | 83 | #include "platform/mbed_wait_api.h" |
marcozecchini | 0:9fca2b23d0ba | 84 | #include "hal/sleep_api.h" |
marcozecchini | 0:9fca2b23d0ba | 85 | #include "platform/mbed_sleep.h" |
marcozecchini | 0:9fca2b23d0ba | 86 | #include "platform/mbed_rtc_time.h" |
marcozecchini | 0:9fca2b23d0ba | 87 | #include "platform/mbed_poll.h" |
marcozecchini | 0:9fca2b23d0ba | 88 | #include "platform/ATCmdParser.h" |
marcozecchini | 0:9fca2b23d0ba | 89 | #include "platform/FileSystemHandle.h" |
marcozecchini | 0:9fca2b23d0ba | 90 | #include "platform/FileHandle.h" |
marcozecchini | 0:9fca2b23d0ba | 91 | #include "platform/DirHandle.h" |
marcozecchini | 0:9fca2b23d0ba | 92 | #include "platform/CriticalSectionLock.h" |
marcozecchini | 0:9fca2b23d0ba | 93 | #include "platform/DeepSleepLock.h" |
marcozecchini | 0:9fca2b23d0ba | 94 | |
marcozecchini | 0:9fca2b23d0ba | 95 | // mbed Non-hardware components |
marcozecchini | 0:9fca2b23d0ba | 96 | #include "platform/Callback.h" |
marcozecchini | 0:9fca2b23d0ba | 97 | #include "platform/FunctionPointer.h" |
marcozecchini | 0:9fca2b23d0ba | 98 | |
marcozecchini | 0:9fca2b23d0ba | 99 | using namespace mbed; |
marcozecchini | 0:9fca2b23d0ba | 100 | using namespace std; |
marcozecchini | 0:9fca2b23d0ba | 101 | |
marcozecchini | 0:9fca2b23d0ba | 102 | #endif |