Skip to content
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

nrf_modem: doc: porting_guide: Semaphore update #1196

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions nrf_modem/doc/ug_nrf_modem_porting_os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,6 @@ This function is called by the library to allocate and initialize a semaphore.
* Allocate and initialize a semaphore.
* If an address of an already allocated semaphore is provided as an input, the allocation part is skipped and the semaphore is only reinitialized.

.. note::

Semaphores are not required if multithreaded access to modem functionality is not needed.
In this case, the function can blindly return ``0``.

nrf_modem_os_sem_give()
-----------------------

Expand Down Expand Up @@ -366,8 +361,8 @@ You can use it as a starting point and customize it for your OS or scheduler.
int nrf_modem_os_sem_init(void **sem, unsigned int initial_count, unsigned int limit)
{
/* The function shall allocate and initialize a semaphore and return its address
through the `sem` parameter. If an address of an already allocated semaphore is provided as
an input, the allocation part is skipped and the semaphore is only reinitialized. */
through the `sem` parameter. If an address of an already allocated semaphore is provided
as an input, the allocation part is skipped and the semaphore is only reinitialized. */
return 0;
}

Expand Down
Loading