Hi,
I am working with nCS SPI HAL, wherein i want semaphore in place at the HAL, which can avoid multiple slaves' concurrent access.
Can you kindly point me to any such semaphore logic or sample program available.
Thanks,
Hi,
I am working with nCS SPI HAL, wherein i want semaphore in place at the HAL, which can avoid multiple slaves' concurrent access.
Can you kindly point me to any such semaphore logic or sample program available.
Thanks,
hello Ubaid
you can check this: Basic SPI on STM32 with Zephyr · GitHub
Hello sipan112,
check this
This is just a sample app for SPI_Write() demo.
I am rather looking for a sample project demonstrating use of semaphore.
wherein i want semaphore in place at the HAL, which can avoid multiple slaves' concurrent access.
Can you kindly point me to any such semaphore logic or sample program available.
Hi,
You can get more information about semaphores under Zephyr semaphores.
Best regards,
Dejan
Hello dejans,
I am aware of
information about semaphores
I am requesting for a sample project on usage of semaphores.
wherein i want semaphore in place at the HAL, which can avoid multiple slaves' concurrent access
Hi,
You could try searching for functions k_sem_define(), k_sem_give() and k_sem_take() from VS Code. For example, you could look at zephyr\drivers\spi.
Best regards,
Dejan
Hi,
You could try searching for functions k_sem_define(), k_sem_give() and k_sem_take() from VS Code. For example, you could look at zephyr\drivers\spi.
Best regards,
Dejan
Hello dejans,
searching for functions k_sem_define(), k_sem_give() and k_sem_take() from VS Code.
This I saw in the documentation, rather I am asking for a sample code & project demonstrating the use of semaphore and these APIs.
Regards,
Hi,
Have you checked zephyr\drivers\spi?
Best regards,
Dejan
Hello dejans,
Have you checked zephyr\drivers\spi?
No semaphore usage in SPI driver files under the path nor in SPI test code.
Regards,
I have evaluated and completed my coding.
Please mark this case as closed.
hello Ubaid_M
when i get a sample available, i will share it with you