Lines Matching full:cause
75 * @brief TestPurpose: verify get reset cause works.
79 * -# Read the reset cause
88 uint32_t cause; in ZTEST() local
91 /* Set `cause` to a known value prior to call. */ in ZTEST()
92 cause = 0xDEADBEEF; in ZTEST()
94 ret = hwinfo_get_reset_cause(&cause); in ZTEST()
103 /* Verify that `cause` has been changed. */ in ZTEST()
104 zassert_not_equal(cause, 0xDEADBEEF, "Reset cause not written."); in ZTEST()
111 * @brief TestPurpose: verify clear reset cause works. This may
112 * not work on some platforms, depending on how reset cause register
116 * -# Read the reset cause and store the result
117 * -# Call clear reset cause
118 * -# Read the reset cause again
121 * -# Reset cause value should change after calling clear reset cause.
156 /* Verify that `cause` has been changed. */ in ZTEST()
158 "Reset cause did not change after clearing"); in ZTEST()
165 * @brief TestPurpose: verify get supported reset cause works.
169 * -# Read the reset cause
194 "Supported reset cause not written."); in ZTEST()