The work_queue sample illustrates three reaction styles available for using zbus. The first is a listener that reacts by callback; use it should for urgent reaction. The second is a listener that responds by callback; instead of executing the code, it pushes a job to a work queue that will be executed shortly but not immediately. The last one is the subscriber that reacts using a queue; use it for an asynchronous reaction where the developer would like to control the flow. Signed-off-by: Rodrigo Peixoto <rodrigopex@gmail.com>
7 lines
118 B
Plaintext
7 lines
118 B
Plaintext
CONFIG_LOG=y
|
|
CONFIG_THREAD_NAME=y
|
|
CONFIG_ASSERT=y
|
|
CONFIG_LOG_MODE_MINIMAL=y
|
|
CONFIG_ZBUS=y
|
|
CONFIG_ZBUS_LOG_LEVEL_INF=y
|