12 #include "sw/device/lib/testing/lc_ctrl_testutils.h"
13 #include "sw/device/lib/testing/test_framework/check.h"
16 static dif_lc_ctrl_t lc;
20 static volatile const uint8_t kPerformTransitionBySW = 0;
37 bool execute_lc_ctrl_scrap_test(
bool use_ext_clk) {
38 if (kPerformTransitionBySW) {
39 LOG_INFO(
"Start LC_CTRL scrap test");
41 dt_lc_ctrl_t kLcCtrlDt = (dt_lc_ctrl_t)0;
42 static_assert(kDtLcCtrlCount == 1,
43 "This test expects exactly one LC controller");
44 CHECK_DIF_OK(dif_lc_ctrl_init_from_dt(kLcCtrlDt, &lc));
50 "LC transition configuration failed!");
53 LOG_INFO(
"Waiting for LC transtition done and reboot.");
64 CHECK(
false,
"Should have reset before this line.");
66 LOG_INFO(
"LC transition is performed by JTAG. Skipping SW...");
72 OTTF_DEFINE_TEST_CONFIG();
75 return execute_lc_ctrl_scrap_test(
false);