zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.01k stars 6.16k forks source link

drivers: spi: NRF5x Avoid locking when not threaded #9250

Open nvlsianpu opened 5 years ago

nvlsianpu commented 5 years ago

When using CONFIG_MULTITHREADING=n, the semaphore primitives are non-functional and useless. Remove their usage when this option is enabled.

Something like this was previously applied to the flash driver (see https://github.com/zephyrproject-rtos/zephyr/commit/408ea1464b254972f00469cad4f23c078c2857d4)

Reason behind this request is possible usage of SPI driver along with mcuboot which is the one-thread application.

zephyrbot commented 4 months ago

Hi @anangl,

This issue, marked as an Enhancement, was opened a while ago and did not get any traction. Please confirm the issue is correctly assigned and re-assign it otherwise.

Please take a moment to review if the issue is still relevant to the project. If it is, please provide feedback and direction on how to move forward. If it is not, has already been addressed, is a duplicate, or is no longer relevant, please close it with a short comment explaining the reason.

@nvlsianpu you are also encouraged to help moving this issue forward by providing additional information and confirming this request/issue is still relevant to you.

Thanks!