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