Skip to content

Commit 5c0f1b5

Browse files
committed
rtos: use RTX identifier
os_thread_t and family are internal and should not be used (thus we included internal header file). Instead, use those that are exposed via rtx_os.h file.
1 parent 5bf483e commit 5c0f1b5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

rtos/TARGET_CORTEX/mbed_rtos_storage.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ extern "C" {
4040
implementation specific, header file, therefore limiting scope of possible changes.
4141
*/
4242

43-
#include "rtx_lib.h"
43+
#include "rtx_os.h"
4444
#include "mbed_rtx_conf.h"
4545

46-
typedef os_mutex_t mbed_rtos_storage_mutex_t;
47-
typedef os_semaphore_t mbed_rtos_storage_semaphore_t;
48-
typedef os_thread_t mbed_rtos_storage_thread_t;
49-
typedef os_memory_pool_t mbed_rtos_storage_mem_pool_t;
50-
typedef os_message_queue_t mbed_rtos_storage_msg_queue_t;
51-
typedef os_event_flags_t mbed_rtos_storage_event_flags_t;
52-
typedef os_message_t mbed_rtos_storage_message_t;
53-
typedef os_timer_t mbed_rtos_storage_timer_t;
46+
typedef osRtxMutex_t mbed_rtos_storage_mutex_t;
47+
typedef osRtxSemaphore_t mbed_rtos_storage_semaphore_t;
48+
typedef osRtxThread_t mbed_rtos_storage_thread_t;
49+
typedef osRtxMemoryPool_t mbed_rtos_storage_mem_pool_t;
50+
typedef osRtxMessageQueue_t mbed_rtos_storage_msg_queue_t;
51+
typedef osRtxEventFlags_t mbed_rtos_storage_event_flags_t;
52+
typedef osRtxMessage_t mbed_rtos_storage_message_t;
53+
typedef osRtxTimer_t mbed_rtos_storage_timer_t;
5454

5555
#ifdef __cplusplus
5656
}

0 commit comments

Comments
 (0)