2017-05-15 14:55:45 +00:00
|
|
|
/* mbed Microcontroller Library
|
|
|
|
* Copyright (c) 2006-2017 ARM Limited
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
* SOFTWARE.
|
|
|
|
*/
|
|
|
|
#ifndef MBED_RTOS_STORAGE_H
|
|
|
|
#define MBED_RTOS_STORAGE_H
|
|
|
|
|
2017-06-01 20:18:52 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2017-05-15 14:55:45 +00:00
|
|
|
/** \addtogroup rtos */
|
|
|
|
/** @{*/
|
|
|
|
|
|
|
|
/** @brief RTOS primitives storage types for RTX
|
|
|
|
|
|
|
|
Types defined in this file should be utilized, when the direct RTOS C API usage is required, to provide backing memory
|
|
|
|
for internal RTX data. Allocated object should be wrapped in attribute struct and passed to os*New call, for details
|
|
|
|
see CMSIS-RTOS2 documentation.
|
|
|
|
|
|
|
|
@note
|
|
|
|
This file breaks abstraction layers and uses RTX internal types, but it limits the contamination to single, RTOS
|
|
|
|
implementation specific, header file, therefore limiting scope of possible changes.
|
|
|
|
*/
|
|
|
|
|
2018-06-28 13:12:16 +00:00
|
|
|
#include "rtx_os.h"
|
2017-07-08 15:07:37 +00:00
|
|
|
#include "mbed_rtx_conf.h"
|
2017-05-15 14:55:45 +00:00
|
|
|
|
2018-06-28 13:12:16 +00:00
|
|
|
typedef osRtxMutex_t mbed_rtos_storage_mutex_t;
|
|
|
|
typedef osRtxSemaphore_t mbed_rtos_storage_semaphore_t;
|
|
|
|
typedef osRtxThread_t mbed_rtos_storage_thread_t;
|
|
|
|
typedef osRtxMemoryPool_t mbed_rtos_storage_mem_pool_t;
|
|
|
|
typedef osRtxMessageQueue_t mbed_rtos_storage_msg_queue_t;
|
|
|
|
typedef osRtxEventFlags_t mbed_rtos_storage_event_flags_t;
|
|
|
|
typedef osRtxMessage_t mbed_rtos_storage_message_t;
|
|
|
|
typedef osRtxTimer_t mbed_rtos_storage_timer_t;
|
2017-05-15 14:55:45 +00:00
|
|
|
|
2017-06-01 20:18:52 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-05-15 14:55:45 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/** @}*/
|