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