Technical Support
On-Line Manuals
RL-ARM User's Guide (MDK v4)
#include <rtl.h> void os_sem_init ( OS_ID semaphore, /* The semaphore object to initialize */ U16 token_count ); /* Initial number of tokens */
The os_sem_init function initializes the semaphore object identified by the function argument.
The argument token_count determines the number of tokens stored in the semaphore initially.
The os_sem_init function is in the RL-RTX library. The prototype is defined in rtl.h.
Note
None.
isr_sem_send, os_sem_send, os_sem_wait
#include <rtl.h> OS_SEM semaphore1; __task void task1 (void) { .. os_sem_init (&semaphore1, 0); os_sem_send (&semaphore1); .. }
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.