mbed-os

Dependents:   cobaLCDJoyMotor_Thread odometry_omni_3roda_v3 odometry_omni_3roda_v1 odometry_omni_3roda_v2 ... more

Committer:
be_bryan
Date:
Mon Dec 11 17:54:04 2017 +0000
Revision:
0:b74591d5ab33
motor ++

Who changed what in which revision?

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