Maintain legacy RTOS behavior before mbed-5

Fork of mbed-rtos by mbed official

Committer:
c1728p9
Date:
Mon Nov 14 17:14:42 2016 -0600
Revision:
123:58563e6cba1e
Parent:
120:4dc938e301cc
Configure RTOS to behave as it did before 5.0

Who changed what in which revision?

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