Marco Zecchini
/
Example_RTOS
Rtos API example
mbed-os/rtos/rtos.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 | |
marcozecchini | 0:9fca2b23d0ba | 2 | /** \addtogroup rtos */ |
marcozecchini | 0:9fca2b23d0ba | 3 | /** @{*/ |
marcozecchini | 0:9fca2b23d0ba | 4 | /* mbed Microcontroller Library |
marcozecchini | 0:9fca2b23d0ba | 5 | * Copyright (c) 2006-2012 ARM Limited |
marcozecchini | 0:9fca2b23d0ba | 6 | * |
marcozecchini | 0:9fca2b23d0ba | 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
marcozecchini | 0:9fca2b23d0ba | 8 | * of this software and associated documentation files (the "Software"), to deal |
marcozecchini | 0:9fca2b23d0ba | 9 | * in the Software without restriction, including without limitation the rights |
marcozecchini | 0:9fca2b23d0ba | 10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
marcozecchini | 0:9fca2b23d0ba | 11 | * copies of the Software, and to permit persons to whom the Software is |
marcozecchini | 0:9fca2b23d0ba | 12 | * furnished to do so, subject to the following conditions: |
marcozecchini | 0:9fca2b23d0ba | 13 | * |
marcozecchini | 0:9fca2b23d0ba | 14 | * The above copyright notice and this permission notice shall be included in |
marcozecchini | 0:9fca2b23d0ba | 15 | * all copies or substantial portions of the Software. |
marcozecchini | 0:9fca2b23d0ba | 16 | * |
marcozecchini | 0:9fca2b23d0ba | 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
marcozecchini | 0:9fca2b23d0ba | 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
marcozecchini | 0:9fca2b23d0ba | 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
marcozecchini | 0:9fca2b23d0ba | 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
marcozecchini | 0:9fca2b23d0ba | 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
marcozecchini | 0:9fca2b23d0ba | 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
marcozecchini | 0:9fca2b23d0ba | 23 | * SOFTWARE. |
marcozecchini | 0:9fca2b23d0ba | 24 | */ |
marcozecchini | 0:9fca2b23d0ba | 25 | #ifndef RTOS_H |
marcozecchini | 0:9fca2b23d0ba | 26 | #define RTOS_H |
marcozecchini | 0:9fca2b23d0ba | 27 | |
marcozecchini | 0:9fca2b23d0ba | 28 | #include "mbed_rtos_storage.h" |
marcozecchini | 0:9fca2b23d0ba | 29 | #include "rtos/Thread.h" |
marcozecchini | 0:9fca2b23d0ba | 30 | #include "rtos/Mutex.h" |
marcozecchini | 0:9fca2b23d0ba | 31 | #include "rtos/RtosTimer.h" |
marcozecchini | 0:9fca2b23d0ba | 32 | #include "rtos/Semaphore.h" |
marcozecchini | 0:9fca2b23d0ba | 33 | #include "rtos/Mail.h" |
marcozecchini | 0:9fca2b23d0ba | 34 | #include "rtos/MemoryPool.h" |
marcozecchini | 0:9fca2b23d0ba | 35 | #include "rtos/Queue.h" |
marcozecchini | 0:9fca2b23d0ba | 36 | #include "rtos/EventFlags.h" |
marcozecchini | 0:9fca2b23d0ba | 37 | #include "rtos/ConditionVariable.h" |
marcozecchini | 0:9fca2b23d0ba | 38 | |
marcozecchini | 0:9fca2b23d0ba | 39 | using namespace rtos; |
marcozecchini | 0:9fca2b23d0ba | 40 | |
marcozecchini | 0:9fca2b23d0ba | 41 | /* Get mbed lib version number, as RTOS depends on mbed lib features |
marcozecchini | 0:9fca2b23d0ba | 42 | like mbed_error, Callback and others. |
marcozecchini | 0:9fca2b23d0ba | 43 | */ |
marcozecchini | 0:9fca2b23d0ba | 44 | #include "mbed.h" |
marcozecchini | 0:9fca2b23d0ba | 45 | |
marcozecchini | 0:9fca2b23d0ba | 46 | #endif |
marcozecchini | 0:9fca2b23d0ba | 47 | |
marcozecchini | 0:9fca2b23d0ba | 48 | /** @}*/ |