12#include "hw/top/dt/flash_macro_wrapper.h"
34 [kDtFlashMacroWrapperRegBlockCore] = 0x41008000,
43 [kDtFlashMacroWrapperPeriphIoTck] = {
48 .outsel_or_dt_pad = 0,
51 [kDtFlashMacroWrapperPeriphIoTms] = {
56 .outsel_or_dt_pad = 0,
59 [kDtFlashMacroWrapperPeriphIoTdi] = {
64 .outsel_or_dt_pad = 0,
67 [kDtFlashMacroWrapperPeriphIoTdo] = {
71 .periph_input_or_direct_pad = 0,
84#define TRY_GET_DT(dt, default) ({ if ((dt) < (dt_flash_macro_wrapper_t)0 || (int)(dt) >= kDtFlashMacroWrapperCount) return (default); &flash_macro_wrapper_desc[dt]; })
102 return TRY_GET_DT(dt, 0xdeadbeef)->reg_addr[reg_block];
111 return TRY_GET_DT(dt, kDtPeriphIoConstantHighZ)->periph_io[sig];