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

Enable the backend in your project’s prj.conf:

CONFIG_PIGWEED_INTERRUPT_CONTEXT=y