Implemented concurrency support for LiteRTOS with semaphores.