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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "rtx_lib.h"
|
|
|
|
|
|
|
|
typedef os_mutex_t mbed_rtos_storage_mutex_t;
|
|
|
|
typedef os_semaphore_t mbed_rtos_storage_semaphore_t;
|
|
|
|
typedef os_thread_t mbed_rtos_storage_thread_t;
|
|
|
|
typedef os_memory_pool_t mbed_rtos_storage_mem_pool_t;
|
|
|
|
typedef os_message_queue_t mbed_rtos_storage_msg_queue_t;
|
|
|
|
typedef os_event_flags_t mbed_rtos_storage_event_flags_t;
|
|
|
|
typedef os_message_t mbed_rtos_storage_message_t;
|
|
|
|
typedef os_timer_t mbed_rtos_storage_timer_t;
|
|
|
|
|
2017-06-01 20:18:52 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-05-15 14:55:45 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/** @}*/
|