RTC auf true
rtos/TARGET_CORTEX/mbed_rtos_storage.h@0:38ceb79fef03, 2018-11-28 (annotated)
- Committer:
- kevman
- Date:
- Wed Nov 28 15:10:15 2018 +0000
- Revision:
- 0:38ceb79fef03
RTC modified
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kevman | 0:38ceb79fef03 | 1 | /* mbed Microcontroller Library |
kevman | 0:38ceb79fef03 | 2 | * Copyright (c) 2006-2017 ARM Limited |
kevman | 0:38ceb79fef03 | 3 | * |
kevman | 0:38ceb79fef03 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
kevman | 0:38ceb79fef03 | 5 | * of this software and associated documentation files (the "Software"), to deal |
kevman | 0:38ceb79fef03 | 6 | * in the Software without restriction, including without limitation the rights |
kevman | 0:38ceb79fef03 | 7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
kevman | 0:38ceb79fef03 | 8 | * copies of the Software, and to permit persons to whom the Software is |
kevman | 0:38ceb79fef03 | 9 | * furnished to do so, subject to the following conditions: |
kevman | 0:38ceb79fef03 | 10 | * |
kevman | 0:38ceb79fef03 | 11 | * The above copyright notice and this permission notice shall be included in |
kevman | 0:38ceb79fef03 | 12 | * all copies or substantial portions of the Software. |
kevman | 0:38ceb79fef03 | 13 | * |
kevman | 0:38ceb79fef03 | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
kevman | 0:38ceb79fef03 | 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
kevman | 0:38ceb79fef03 | 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
kevman | 0:38ceb79fef03 | 17 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
kevman | 0:38ceb79fef03 | 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
kevman | 0:38ceb79fef03 | 19 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
kevman | 0:38ceb79fef03 | 20 | * SOFTWARE. |
kevman | 0:38ceb79fef03 | 21 | */ |
kevman | 0:38ceb79fef03 | 22 | #ifndef MBED_RTOS_STORAGE_H |
kevman | 0:38ceb79fef03 | 23 | #define MBED_RTOS_STORAGE_H |
kevman | 0:38ceb79fef03 | 24 | |
kevman | 0:38ceb79fef03 | 25 | #ifdef __cplusplus |
kevman | 0:38ceb79fef03 | 26 | extern "C" { |
kevman | 0:38ceb79fef03 | 27 | #endif |
kevman | 0:38ceb79fef03 | 28 | |
kevman | 0:38ceb79fef03 | 29 | /** \addtogroup rtos */ |
kevman | 0:38ceb79fef03 | 30 | /** @{*/ |
kevman | 0:38ceb79fef03 | 31 | |
kevman | 0:38ceb79fef03 | 32 | /** @brief RTOS primitives storage types for RTX |
kevman | 0:38ceb79fef03 | 33 | |
kevman | 0:38ceb79fef03 | 34 | Types defined in this file should be utilized, when the direct RTOS C API usage is required, to provide backing memory |
kevman | 0:38ceb79fef03 | 35 | for internal RTX data. Allocated object should be wrapped in attribute struct and passed to os*New call, for details |
kevman | 0:38ceb79fef03 | 36 | see CMSIS-RTOS2 documentation. |
kevman | 0:38ceb79fef03 | 37 | |
kevman | 0:38ceb79fef03 | 38 | @note |
kevman | 0:38ceb79fef03 | 39 | This file breaks abstraction layers and uses RTX internal types, but it limits the contamination to single, RTOS |
kevman | 0:38ceb79fef03 | 40 | implementation specific, header file, therefore limiting scope of possible changes. |
kevman | 0:38ceb79fef03 | 41 | */ |
kevman | 0:38ceb79fef03 | 42 | |
kevman | 0:38ceb79fef03 | 43 | #include "rtx_os.h" |
kevman | 0:38ceb79fef03 | 44 | #include "mbed_rtx_conf.h" |
kevman | 0:38ceb79fef03 | 45 | |
kevman | 0:38ceb79fef03 | 46 | typedef osRtxMutex_t mbed_rtos_storage_mutex_t; |
kevman | 0:38ceb79fef03 | 47 | typedef osRtxSemaphore_t mbed_rtos_storage_semaphore_t; |
kevman | 0:38ceb79fef03 | 48 | typedef osRtxThread_t mbed_rtos_storage_thread_t; |
kevman | 0:38ceb79fef03 | 49 | typedef osRtxMemoryPool_t mbed_rtos_storage_mem_pool_t; |
kevman | 0:38ceb79fef03 | 50 | typedef osRtxMessageQueue_t mbed_rtos_storage_msg_queue_t; |
kevman | 0:38ceb79fef03 | 51 | typedef osRtxEventFlags_t mbed_rtos_storage_event_flags_t; |
kevman | 0:38ceb79fef03 | 52 | typedef osRtxMessage_t mbed_rtos_storage_message_t; |
kevman | 0:38ceb79fef03 | 53 | typedef osRtxTimer_t mbed_rtos_storage_timer_t; |
kevman | 0:38ceb79fef03 | 54 | |
kevman | 0:38ceb79fef03 | 55 | #ifdef __cplusplus |
kevman | 0:38ceb79fef03 | 56 | } |
kevman | 0:38ceb79fef03 | 57 | #endif |
kevman | 0:38ceb79fef03 | 58 | |
kevman | 0:38ceb79fef03 | 59 | #endif |
kevman | 0:38ceb79fef03 | 60 | |
kevman | 0:38ceb79fef03 | 61 | /** @}*/ |