Skip to content

Update CMSIS-Core and RTX to version 5 #4346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion TESTS/mbedmicro-rtos-mbed/mutex/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void test_dual_thread_lock_lock_thread(Mutex *mutex)
uint32_t start = us_ticker_read();

osStatus stat = mutex->lock(TEST_HALF_SEC_MS);
TEST_ASSERT_EQUAL(stat, osEventTimeout);
TEST_ASSERT_EQUAL(stat, osErrorTimeout);
TEST_ASSERT_UINT32_WITHIN(TEST_ONE_MS_US, TEST_HALF_SEC_US, us_ticker_read() - start);
}

Expand Down
4 changes: 3 additions & 1 deletion TESTS/mbedmicro-rtos-mbed/threads/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@ void self_terminate(Thread *self) {
// Tests that spawn tasks in different configurations
template <void (*F)(counter_t *)>
void test_single_thread() {
const char tname[] = "Single Thread";
counter_t counter(0);
Thread thread(osPriorityNormal, THREAD_STACK_SIZE, NULL);
Thread thread(osPriorityNormal, THREAD_STACK_SIZE, NULL, tname);
thread.start(callback(F, &counter));
thread.join();
TEST_ASSERT_EQUAL(counter, 1);
TEST_ASSERT_EQUAL(strcmp(tname, thread.get_name()), 0);
}

template <int N, void (*F)(counter_t *)>
Expand Down
Loading