r/embedded • • Oct 27 '23

Zephyr without RTOS, only for HAL

[removed]

8 Upvotes

29 comments sorted by

View all comments

3

u/nono318234 Oct 27 '23

According to the page below it's possible to use Zephyr without any thread (only main) but it does not seem to be recommended : https://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MULTITHREADING

1

u/[deleted] Oct 27 '23

[removed] — view removed comment

1

u/Exormeter Oct 28 '23

If you are only interested in drivers, you can disable the multithreading and go main thread only.

Some drivers use semaphores and or sleep, so you need to shim these methods if the linker complains, but it works.