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