Skip to content

Commit e91ab9c

Browse files
committed
Thread: fix rtx thread type
1 parent 1188f4a commit e91ab9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rtos/Thread.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ uint32_t Thread::free_stack() {
274274

275275
#if defined(MBED_OS_BACKEND_RTX5)
276276
if (_tid != NULL) {
277-
os_thread_t *thread = (os_thread_t *)_tid;
277+
mbed_rtos_storage_thread_t *thread = (mbed_rtos_storage_thread_t *)_tid;
278278
size = (uint32_t)thread->sp - (uint32_t)thread->stack_mem;
279279
}
280280
#endif
@@ -289,7 +289,7 @@ uint32_t Thread::used_stack() {
289289

290290
#if defined(MBED_OS_BACKEND_RTX5)
291291
if (_tid != NULL) {
292-
os_thread_t *thread = (os_thread_t *)_tid;
292+
mbed_rtos_storage_thread_t *thread = (mbed_rtos_storage_thread_t *)_tid;
293293
size = ((uint32_t)thread->stack_mem + thread->stack_size) - thread->sp;
294294
}
295295
#endif
@@ -304,7 +304,7 @@ uint32_t Thread::max_stack() {
304304

305305
if (_tid != NULL) {
306306
#if defined(MBED_OS_BACKEND_RTX5)
307-
os_thread_t *thread = (os_thread_t *)_tid;
307+
mbed_rtos_storage_thread_t *thread = (mbed_rtos_storage_thread_t *)_tid;
308308
uint32_t high_mark = 0;
309309
while (((uint32_t *)(thread->stack_mem))[high_mark] == 0xE25A2EA5)
310310
high_mark++;

0 commit comments

Comments
 (0)