1.. _module-pw_assert_zephyr: 2 3================ 4pw_assert_zephyr 5================ 6.. pigweed-module:: 7 :name: pw_assert_zephyr 8 9-------- 10Overview 11-------- 12This assert backend implements the ``pw_assert`` facade, by routing the assert 13message to the Zephyr assert subsystem. Failed asserts will call: 141) ``__ASSERT_LOC(condition)`` 152) If and only if there's a message ``__ASSERT_MSG_INFO(message, ...)`` 163) ``__ASSERT_POST_ACTION()`` 17 18To enable the assert module, set ``CONFIG_PIGWEED_ASSERT=y``. After that, 19Zephyr's assert configs can be used to control the behavior via CONFIG_ASSERT_ 20and CONFIG_ASSERT_LEVEL_. 21 22.. _CONFIG_ASSERT: https://docs.zephyrproject.org/latest/kconfig.html#CONFIG_ASSERT 23.. _CONFIG_ASSERT_LEVEL: https://docs.zephyrproject.org/latest/kconfig.html#CONFIG_ASSERT_LEVEL 24