I’m trying to use a semaphore in my application but found the error undefined reference to `os_semaphore_create when trying to build.
os_queue_create works fine.
I noticed there is nothing in hal_dynalib_concurrent.h for semaphore.
Just interested, has this been left out for any reason? Are you able to suggest a way I can impelement it?
DYNALIB_FN(28, hal_concurrent, os_semaphore_create, int(os_semaphore_t* semaphore, unsigned max_count, unsigned initial_count))
DYNALIB_FN(29, hal_concurrent, os_semaphore_destroy, int(os_semaphore_t semaphore))
DYNALIB_FN(30, hal_concurrent, os_semaphore_give, int(os_semaphore_t semaphore, bool reserved))
DYNALIB_FN(31, hal_concurrent, os_semaphore_take, int(os_semaphore_t semaphore, system_tick_t timeout, bool reserved))
allowed the system to build but it failed when I called the below code at runtime.
os_semaphore_create(&semaph, 1, 0);
Any help would be greatly appreciated.