|
| | K_THREAD_STACK_DEFINE (stack_1,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) |
| |
| | K_THREAD_STACK_DEFINE (stack_2,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) |
| |
| | K_THREAD_STACK_DEFINE (stack_3,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) |
| |
| | K_THREAD_STACK_ARRAY_DEFINE (multiple_stack,(3),(512+CONFIG_TEST_EXTRA_STACK_SIZE)) |
| |
| static void | isr_sem_give (const void *semaphore) |
| |
| static void | isr_sem_take (const void *semaphore) |
| |
| static void | sem_give_from_isr (void *semaphore) |
| |
| static void | sem_take_from_isr (void *semaphore) |
| |
| static void | sem_give_task (void *p1, void *p2, void *p3) |
| |
| static void | sem_take_timeout_forever_helper (void *p1, void *p2, void *p3) |
| |
| static void | sem_take_timeout_isr_helper (void *p1, void *p2, void *p3) |
| |
| static void | sem_take_multiple_low_prio_helper (void *p1, void *p2, void *p3) |
| |
| static void | sem_take_multiple_mid_prio_helper (void *p1, void *p2, void *p3) |
| |
| static void | sem_take_multiple_high_prio_helper (void *p1, void *p2, void *p3) |
| |
| static void | sem_multiple_threads_wait_helper (void *p1, void *p2, void *p3) |
| |
| void | k_sys_fatal_error_handler (unsigned int reason, const struct arch_esf *pEsf) |
| | Fatal error policy handler.
|
| |
| void * | sys_sem_setup (void) |
| |
| | ZTEST_SUITE (sys_sem, NULL, sys_sem_setup, NULL, NULL, NULL) |
| |
| | ZTEST_SUITE (sys_sem_1cpu, NULL, sys_sem_setup, ztest_simple_1cpu_before, ztest_simple_1cpu_after, NULL) |
| |
|
| void | test_basic_sem_test (void) |
| |
| void | test_simple_sem_from_isr (void) |
| | Test semaphore count when given by an ISR.
|
| |
| void | test_simple_sem_from_task (void) |
| | Test semaphore count when given by thread.
|
| |
| void | test_sem_take_no_wait (void) |
| | Test if sys_sem_take() decreases semaphore count.
|
| |
| void | test_sem_take_no_wait_fails (void) |
| | Test sys_sem_take() when there is no semaphore to take.
|
| |
| void | test_sem_take_timeout_fails (void) |
| | Test sys_sem_take() with timeout expiry.
|
| |
| void | test_sem_take_timeout (void) |
| | Test sys_sem_take() with timeout.
|
| |
| void | test_sem_take_timeout_forever (void) |
| | Test sys_sem_take() with forever timeout.
|
| |
| void | test_sem_take_timeout_isr (void) |
| | Test sys_sem_take() with timeout in ISR context.
|
| |
| void | test_sem_take_multiple (void) |
| | Test multiple semaphore take.
|
| |
| void | test_sem_give_take_from_isr (void) |
| | Test semaphore give and take and its count from ISR.
|
| |
| void | test_sem_give_limit (void) |
| | Test semaphore give limit count.
|
| |
| void | test_sem_multiple_threads_wait (void) |
| | Test multiple semaphore take and give with wait.
|
| |