| // Copyright lowRISC contributors. |
| // Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| // SPDX-License-Identifier: Apache-2.0 |
| #include "sw/device/lib/testing/lc_ctrl_testutils.h" |
| #include "sw/device/lib/dif/dif_lc_ctrl.h" |
| #include "sw/device/lib/runtime/log.h" |
| #include "sw/device/lib/testing/check.h" |
| bool lc_ctrl_testutils_debug_func_enabled(const dif_lc_ctrl_t *lc_ctrl) { |
| dif_lc_ctrl_state_t state; |
| CHECK_DIF_OK(dif_lc_ctrl_get_state(lc_ctrl, &state)); |
| case kDifLcCtrlStateTestUnlocked0: |
| case kDifLcCtrlStateTestUnlocked1: |
| case kDifLcCtrlStateTestUnlocked2: |
| case kDifLcCtrlStateTestUnlocked3: |
| case kDifLcCtrlStateTestUnlocked4: |
| case kDifLcCtrlStateTestUnlocked5: |
| case kDifLcCtrlStateTestUnlocked6: |
| case kDifLcCtrlStateTestUnlocked7: |