Code for controlling mbed hardware (LED's, motors), as well as code for the Raspberry Pi to run a Support Vector Machine that identifies objects using the Pi camera
Dependencies: mbed Motordriver mbed-rtos PololuLedStrip
mbed/mbed-rtos/rtos/rtos.h@0:e0dbd261724a, 2019-12-05 (annotated)
- Committer:
- arogliero3
- Date:
- Thu Dec 05 20:34:10 2019 -0500
- Revision:
- 0:e0dbd261724a
Adding code to mbed repo
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
arogliero3 | 0:e0dbd261724a | 1 | |
arogliero3 | 0:e0dbd261724a | 2 | /** \addtogroup rtos */ |
arogliero3 | 0:e0dbd261724a | 3 | /** @{*/ |
arogliero3 | 0:e0dbd261724a | 4 | /* mbed Microcontroller Library |
arogliero3 | 0:e0dbd261724a | 5 | * Copyright (c) 2006-2012 ARM Limited |
arogliero3 | 0:e0dbd261724a | 6 | * |
arogliero3 | 0:e0dbd261724a | 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
arogliero3 | 0:e0dbd261724a | 8 | * of this software and associated documentation files (the "Software"), to deal |
arogliero3 | 0:e0dbd261724a | 9 | * in the Software without restriction, including without limitation the rights |
arogliero3 | 0:e0dbd261724a | 10 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
arogliero3 | 0:e0dbd261724a | 11 | * copies of the Software, and to permit persons to whom the Software is |
arogliero3 | 0:e0dbd261724a | 12 | * furnished to do so, subject to the following conditions: |
arogliero3 | 0:e0dbd261724a | 13 | * |
arogliero3 | 0:e0dbd261724a | 14 | * The above copyright notice and this permission notice shall be included in |
arogliero3 | 0:e0dbd261724a | 15 | * all copies or substantial portions of the Software. |
arogliero3 | 0:e0dbd261724a | 16 | * |
arogliero3 | 0:e0dbd261724a | 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
arogliero3 | 0:e0dbd261724a | 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
arogliero3 | 0:e0dbd261724a | 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
arogliero3 | 0:e0dbd261724a | 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
arogliero3 | 0:e0dbd261724a | 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
arogliero3 | 0:e0dbd261724a | 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
arogliero3 | 0:e0dbd261724a | 23 | * SOFTWARE. |
arogliero3 | 0:e0dbd261724a | 24 | */ |
arogliero3 | 0:e0dbd261724a | 25 | #ifndef RTOS_H |
arogliero3 | 0:e0dbd261724a | 26 | #define RTOS_H |
arogliero3 | 0:e0dbd261724a | 27 | |
arogliero3 | 0:e0dbd261724a | 28 | #include "rtos/Thread.h" |
arogliero3 | 0:e0dbd261724a | 29 | #include "rtos/Mutex.h" |
arogliero3 | 0:e0dbd261724a | 30 | #include "rtos/RtosTimer.h" |
arogliero3 | 0:e0dbd261724a | 31 | #include "rtos/Semaphore.h" |
arogliero3 | 0:e0dbd261724a | 32 | #include "rtos/Mail.h" |
arogliero3 | 0:e0dbd261724a | 33 | #include "rtos/MemoryPool.h" |
arogliero3 | 0:e0dbd261724a | 34 | #include "rtos/Queue.h" |
arogliero3 | 0:e0dbd261724a | 35 | |
arogliero3 | 0:e0dbd261724a | 36 | using namespace rtos; |
arogliero3 | 0:e0dbd261724a | 37 | |
arogliero3 | 0:e0dbd261724a | 38 | /* Get mbed lib version number, as RTOS depends on mbed lib features |
arogliero3 | 0:e0dbd261724a | 39 | like mbed_error, Callback and others. |
arogliero3 | 0:e0dbd261724a | 40 | */ |
arogliero3 | 0:e0dbd261724a | 41 | #include "mbed.h" |
arogliero3 | 0:e0dbd261724a | 42 | |
arogliero3 | 0:e0dbd261724a | 43 | #if (MBED_LIBRARY_VERSION < 122) |
arogliero3 | 0:e0dbd261724a | 44 | #error "This version of RTOS requires mbed library version > 121" |
arogliero3 | 0:e0dbd261724a | 45 | #endif |
arogliero3 | 0:e0dbd261724a | 46 | |
arogliero3 | 0:e0dbd261724a | 47 | #endif |
arogliero3 | 0:e0dbd261724a | 48 | |
arogliero3 | 0:e0dbd261724a | 49 | /** @}*/ |