pw_interrupt_zephyr#
Unstable
This is the Zephyr RTOS backend for the pw_interrupt facade. It uses
k_is_in_isr() to determine whether the current context is an interrupt
service routine.
Setup#
Set the backend flag in your platform definition or build options:
platform(
name = "my_zephyr_platform",
flags = flags_from_dict({
# ...
"@pigweed//pw_interrupt:backend": "@pigweed//pw_interrupt_zephyr:context",
}),
)
Or via your project’s .bazelrc:
build --@pigweed//pw_interrupt:backend=@pigweed//pw_interrupt_zephyr:context
The backend is controlled by choice
PIGWEED_INTERRUPT_CONTEXT_BACKEND (see
How backend selection works) and defaults to Pigweed’s Zephyr
backend.
To supply your own backend instead, select NONE:
CONFIG_PIGWEED_INTERRUPT_CONTEXT_NONE=y