/Zephyr-latest/subsys/bluetooth/audio/ |
D | vocs_client.c | 61 struct bt_vocs_client *inst; in vocs_client_notify_handler() local 67 inst = lookup_vocs_by_handle(conn, handle); in vocs_client_notify_handler() 69 if (!inst) { in vocs_client_notify_handler() 78 if (handle == inst->state_handle) { in vocs_client_notify_handler() 79 if (length == sizeof(inst->state)) { in vocs_client_notify_handler() 80 memcpy(&inst->state, data, length); in vocs_client_notify_handler() 81 LOG_DBG("Inst %p: Offset %d, counter %u", inst, inst->state.offset, in vocs_client_notify_handler() 82 inst->state.change_counter); in vocs_client_notify_handler() 83 if (inst->cb && inst->cb->state) { in vocs_client_notify_handler() 84 inst->cb->state(&inst->vocs, 0, inst->state.offset); in vocs_client_notify_handler() [all …]
|
D | aics_client.c | 40 static int aics_client_common_control(uint8_t opcode, struct bt_aics *inst); 62 struct bt_aics *inst; in aics_client_notify_handler() local 70 inst = lookup_aics_by_handle(conn, handle); in aics_client_notify_handler() 72 if (!inst) { in aics_client_notify_handler() 81 if (handle == inst->cli.state_handle) { in aics_client_notify_handler() 84 LOG_DBG("Inst %p: Gain %d, mute %u, gain_mode %u, counter %u", inst, in aics_client_notify_handler() 87 inst->cli.change_counter = state->change_counter; in aics_client_notify_handler() 89 if (inst->cli.cb && inst->cli.cb->state) { in aics_client_notify_handler() 90 inst->cli.cb->state(inst, 0, state->gain, in aics_client_notify_handler() 95 } else if (handle == inst->cli.status_handle) { in aics_client_notify_handler() [all …]
|
D | has_client.c | 38 struct bt_has_client *inst = &clients[bt_conn_index(conn)]; in inst_by_conn() local 40 if (inst->conn == conn) { in inst_by_conn() 41 return inst; in inst_by_conn() 47 static void inst_cleanup(struct bt_has_client *inst) in inst_cleanup() argument 49 bt_conn_unref(inst->conn); in inst_cleanup() 51 (void)memset(inst, 0, sizeof(*inst)); in inst_cleanup() 54 static enum bt_has_capabilities get_capabilities(const struct bt_has_client *inst) in get_capabilities() argument 59 if (HANDLE_IS_VALID(inst->control_point_subscription.value_handle)) { in get_capabilities() 66 static void handle_read_preset_rsp(struct bt_has_client *inst, struct net_buf_simple *buf) in handle_read_preset_rsp() argument 73 LOG_DBG("conn %p buf %p", (void *)inst->conn, buf); in handle_read_preset_rsp() [all …]
|
D | aics.c | 127 struct bt_aics *inst = BT_AUDIO_CHRC_USER_DATA(attr); in read_aics_state() local 129 LOG_DBG("gain %d, mute %u, gain_mode %u, counter %u", inst->srv.state.gain, in read_aics_state() 130 inst->srv.state.mute, inst->srv.state.gain_mode, inst->srv.state.change_counter); in read_aics_state() 132 return bt_gatt_attr_read(conn, attr, buf, len, offset, &inst->srv.state, in read_aics_state() 133 sizeof(inst->srv.state)); in read_aics_state() 140 struct bt_aics *inst = BT_AUDIO_CHRC_USER_DATA(attr); in read_aics_gain_settings() local 142 LOG_DBG("units %u, min %d, max %d", inst->srv.gain_settings.units, in read_aics_gain_settings() 143 inst->srv.gain_settings.minimum, inst->srv.gain_settings.maximum); in read_aics_gain_settings() 146 &inst->srv.gain_settings, in read_aics_gain_settings() 147 sizeof(inst->srv.gain_settings)); in read_aics_gain_settings() [all …]
|
D | vocs.c | 53 struct bt_vocs_server *inst = BT_AUDIO_CHRC_USER_DATA(attr); in read_offset_state() local 55 LOG_DBG("offset %d, counter %u", inst->state.offset, inst->state.change_counter); in read_offset_state() 56 return bt_gatt_attr_read(conn, attr, buf, len, offset, &inst->state, in read_offset_state() 57 sizeof(inst->state)); in read_offset_state() 79 static void notify_work_reschedule(struct bt_vocs_server *inst, enum bt_vocs_notify notify, in notify_work_reschedule() argument 84 atomic_set_bit(inst->notify, notify); in notify_work_reschedule() 86 err = k_work_reschedule(&inst->notify_work, K_NO_WAIT); in notify_work_reschedule() 93 static void notify(struct bt_vocs_server *inst, enum bt_vocs_notify notify, in notify() argument 98 err = bt_gatt_notify_uuid(NULL, uuid, inst->service_p->attrs, data, len); in notify() 100 notify_work_reschedule(inst, notify, K_USEC(BT_AUDIO_NOTIFY_RETRY_DELAY_US)); in notify() [all …]
|
D | tbs.c | 88 static bool inst_is_registered(const struct tbs_inst *inst) in inst_is_registered() argument 90 return inst->attrs != NULL; in inst_is_registered() 93 static bool inst_is_gtbs(const struct tbs_inst *inst) in inst_is_gtbs() argument 96 return inst == >bs_inst; in inst_is_gtbs() 102 static uint8_t inst_index(const struct tbs_inst *inst) in inst_index() argument 106 __ASSERT_NO_MSG(inst); in inst_index() 108 if (inst_is_gtbs(inst)) { in inst_index() 112 index = inst - svc_insts; in inst_index() 120 struct tbs_inst *inst = NULL; in inst_lookup_index() local 123 inst = >bs_inst; in inst_lookup_index() [all …]
|
D | bap_broadcast_assistant.c | 116 static int read_recv_state(struct bap_broadcast_assistant_instance *inst, uint8_t idx); 118 static int16_t lookup_index_by_handle(struct bap_broadcast_assistant_instance *inst, in lookup_index_by_handle() argument 121 for (size_t i = 0U; i < ARRAY_SIZE(inst->recv_state_handles); i++) { in lookup_index_by_handle() 122 if (inst->recv_state_handles[i] == handle) { in lookup_index_by_handle() 134 struct bap_broadcast_assistant_instance *inst; in inst_by_conn() local 141 inst = &broadcast_assistants[bt_conn_index(conn)]; in inst_by_conn() 143 if (inst->conn == conn) { in inst_by_conn() 144 return inst; in inst_by_conn() 153 struct bap_broadcast_assistant_instance *inst = inst_by_conn(conn); in bap_broadcast_assistant_discover_complete() local 157 if (inst != NULL) { in bap_broadcast_assistant_discover_complete() [all …]
|
/Zephyr-latest/drivers/dma/ |
D | dma_intel_adsp_hda_host_in.c | 23 #define INTEL_ADSP_HDA_DMA_HOST_IN_INIT(inst) \ argument 24 static void intel_adsp_hda_dma##inst##_irq_config(void); \ 26 static const struct intel_adsp_hda_dma_cfg intel_adsp_hda_dma##inst##_config = { \ 27 .base = DT_INST_REG_ADDR(inst), \ 28 .regblock_size = DT_INST_REG_SIZE(inst), \ 29 .dma_channels = DT_INST_PROP(inst, dma_channels), \ 31 .irq_config = intel_adsp_hda_dma##inst##_irq_config \ 34 static struct intel_adsp_hda_dma_data intel_adsp_hda_dma##inst##_data = {}; \ 36 PM_DEVICE_DT_INST_DEFINE(inst, intel_adsp_hda_dma_pm_action); \ 38 DEVICE_DT_INST_DEFINE(inst, &intel_adsp_hda_dma_init, \ [all …]
|
D | dma_intel_adsp_hda_host_out.c | 27 #define INTEL_ADSP_HDA_DMA_HOST_OUT_INIT(inst) \ argument 28 static void intel_adsp_hda_dma##inst##_irq_config(void); \ 30 static const struct intel_adsp_hda_dma_cfg intel_adsp_hda_dma##inst##_config = { \ 31 .base = DT_INST_REG_ADDR(inst), \ 32 .regblock_size = DT_INST_REG_SIZE(inst), \ 33 .dma_channels = DT_INST_PROP(inst, dma_channels), \ 35 .irq_config = intel_adsp_hda_dma##inst##_irq_config, \ 38 static struct intel_adsp_hda_dma_data intel_adsp_hda_dma##inst##_data = {}; \ 40 PM_DEVICE_DT_INST_DEFINE(inst, intel_adsp_hda_dma_pm_action); \ 42 DEVICE_DT_INST_DEFINE(inst, &intel_adsp_hda_dma_init, \ [all …]
|
/Zephyr-latest/drivers/comparator/ |
D | comparator_mcux_acmp.c | 82 #define MCUX_ACMP_DT_INST_ENUM(inst, name, prop) \ argument 83 MCUX_ACMP_ENUM(name, DT_INST_STRING_TOKEN(inst, prop)) 85 #define MCUX_ACMP_DT_INST_ENUM_OR(inst, name, prop, or) \ argument 86 COND_CODE_1(DT_INST_NODE_HAS_PROP(inst, prop), \ 87 (MCUX_ACMP_DT_INST_ENUM(inst, name, prop)), \ 90 #define MCUX_ACMP_DT_INST_OFFSET_MODE(inst) \ argument 91 MCUX_ACMP_DT_INST_ENUM_OR(inst, OFFSET_MODE, offset_mode, LEVEL0) 93 #define MCUX_ACMP_DT_INST_HYST_MODE(inst) \ argument 94 MCUX_ACMP_DT_INST_ENUM_OR(inst, HYSTERESIS_MODE, hysteresis_mode, LEVEL0) 96 #define MCUX_ACMP_DT_INST_EN_HS_MODE(inst) \ argument [all …]
|
/Zephyr-latest/soc/ite/ec/common/ |
D | soc_dt.h | 13 #define IT8XXX2_DEV_WUC(idx, inst) \ argument 14 DEVICE_DT_GET(DT_PHANDLE(IT8XXX2_DT_INST_WUCCTRL(inst, idx), wucs)) 15 #define IT8XXX2_DEV_WUC_MASK(idx, inst) \ argument 16 DT_PHA(IT8XXX2_DT_INST_WUCCTRL(inst, idx), wucs, mask) 22 * @param inst instance number 27 #define IT8XXX2_DT_INST_WUCCTRL(inst, idx) \ argument 28 DT_INST_PHANDLE_BY_IDX(inst, wucctrl, idx) 34 * @param inst instance number for compatible defined in DT_DRV_COMPAT 37 #define IT8XXX2_DT_WUC_ITEMS_FUNC(idx, inst) \ argument 39 .wucs = IT8XXX2_DEV_WUC(idx, inst), \ [all …]
|
/Zephyr-latest/drivers/can/ |
D | can_sam.c | 159 #define CAN_SAM_IRQ_CFG_FUNCTION(inst) \ argument 160 static void config_can_##inst##_irq(void) \ 162 LOG_DBG("Enable CAN##inst## IRQ"); \ 163 IRQ_CONNECT(DT_INST_IRQ_BY_NAME(inst, int0, irq), \ 164 DT_INST_IRQ_BY_NAME(inst, int0, priority), can_mcan_line_0_isr, \ 165 DEVICE_DT_INST_GET(inst), 0); \ 166 irq_enable(DT_INST_IRQ_BY_NAME(inst, int0, irq)); \ 167 IRQ_CONNECT(DT_INST_IRQ_BY_NAME(inst, int1, irq), \ 168 DT_INST_IRQ_BY_NAME(inst, int1, priority), can_mcan_line_1_isr, \ 169 DEVICE_DT_INST_GET(inst), 0); \ [all …]
|
/Zephyr-latest/samples/bluetooth/hap_ha/src/ |
D | vcp_vol_renderer.c | 39 static void aics_state_cb(struct bt_aics *inst, int err, int8_t gain, uint8_t mute, uint8_t mode) in aics_state_cb() argument 42 printk("AICS state get failed (%d) for inst %p\n", err, inst); in aics_state_cb() 44 printk("AICS inst %p state gain %d, mute %u, mode %u\n", in aics_state_cb() 45 inst, gain, mute, mode); in aics_state_cb() 49 static void aics_gain_setting_cb(struct bt_aics *inst, int err, uint8_t units, int8_t minimum, in aics_gain_setting_cb() argument 53 printk("AICS gain settings get failed (%d) for inst %p\n", err, inst); in aics_gain_setting_cb() 55 printk("AICS inst %p gain settings units %u, min %d, max %d\n", in aics_gain_setting_cb() 56 inst, units, minimum, maximum); in aics_gain_setting_cb() 60 static void aics_input_type_cb(struct bt_aics *inst, int err, uint8_t input_type) in aics_input_type_cb() argument 63 printk("AICS input type get failed (%d) for inst %p\n", err, inst); in aics_input_type_cb() [all …]
|
D | micp_mic_dev.c | 31 static void micp_mic_dev_aics_state_cb(struct bt_aics *inst, int err, int8_t gain, uint8_t mute, in micp_mic_dev_aics_state_cb() argument 35 printk("AICS state get failed (%d) for inst %p\n", err, inst); in micp_mic_dev_aics_state_cb() 37 printk("AICS inst %p state gain %d, mute %u, mode %u\n", in micp_mic_dev_aics_state_cb() 38 inst, gain, mute, mode); in micp_mic_dev_aics_state_cb() 42 static void micp_mic_dev_aics_gain_setting_cb(struct bt_aics *inst, int err, uint8_t units, in micp_mic_dev_aics_gain_setting_cb() argument 46 printk("AICS gain settings get failed (%d) for inst %p\n", err, inst); in micp_mic_dev_aics_gain_setting_cb() 48 printk("AICS inst %p gain settings units %u, min %d, max %d\n", in micp_mic_dev_aics_gain_setting_cb() 49 inst, units, minimum, maximum); in micp_mic_dev_aics_gain_setting_cb() 53 static void micp_mic_dev_aics_input_type_cb(struct bt_aics *inst, int err, uint8_t input_type) in micp_mic_dev_aics_input_type_cb() argument 56 printk("AICS input type get failed (%d) for inst %p\n", err, inst); in micp_mic_dev_aics_input_type_cb() [all …]
|
/Zephyr-latest/modules/lvgl/input/ |
D | lvgl_encoder_input.c | 50 #define BUTTON_CODE(inst) DT_INST_PROP_OR(inst, button_input_code, -1) argument 51 #define ROTATION_CODE(inst) DT_INST_PROP(inst, rotation_input_code) argument 53 #define ASSERT_PROPERTIES(inst) \ argument 54 BUILD_ASSERT(IN_RANGE(ROTATION_CODE(inst), 0, 65536), \ 56 BUILD_ASSERT(!DT_INST_NODE_HAS_PROP(inst, button_input_code) || \ 57 IN_RANGE(BUTTON_CODE(inst), 0, 65536), \ 59 BUILD_ASSERT(ROTATION_CODE(inst) != BUTTON_CODE(inst), \ 62 #define LVGL_ENCODER_INPUT_DEFINE(inst) \ argument 63 ASSERT_PROPERTIES(inst); \ 64 LVGL_INPUT_DEFINE(inst, encoder, CONFIG_LV_Z_ENCODER_INPUT_MSGQ_COUNT, \ [all …]
|
D | lvgl_keypad_input.c | 54 #define ASSERT_PROPERTIES(inst) \ argument 55 BUILD_ASSERT(DT_INST_PROP_LEN(inst, input_codes) == DT_INST_PROP_LEN(inst, lvgl_codes), \ 58 #define LVGL_KEYPAD_INPUT_DEFINE(inst) \ argument 59 ASSERT_PROPERTIES(inst); \ 60 LVGL_INPUT_DEFINE(inst, keypad, CONFIG_LV_Z_KEYPAD_INPUT_MSGQ_COUNT, \ 62 static const uint16_t lvgl_keypad_input_codes_##inst[] = DT_INST_PROP(inst, input_codes); \ 63 static const uint16_t lvgl_keypad_lvgl_codes_##inst[] = DT_INST_PROP(inst, lvgl_codes); \ 64 static const struct lvgl_keypad_input_config lvgl_keypad_input_config_##inst = { \ 65 .common_config.event_msgq = &LVGL_INPUT_EVENT_MSGQ(inst, keypad), \ 66 .input_codes = lvgl_keypad_input_codes_##inst, \ [all …]
|
D | lvgl_button_input.c | 65 #define ASSERT_PROPERTIES(inst) \ argument 66 BUILD_ASSERT(DT_INST_PROP_LEN(inst, input_codes) * 2 == \ 67 DT_INST_PROP_LEN(inst, coordinates), \ 70 #define LVGL_BUTTON_INPUT_DEFINE(inst) \ argument 71 ASSERT_PROPERTIES(inst); \ 72 LVGL_INPUT_DEFINE(inst, button, CONFIG_LV_Z_BUTTON_INPUT_MSGQ_COUNT, \ 74 static const uint16_t lvgl_button_input_codes_##inst[] = DT_INST_PROP(inst, input_codes); \ 75 static const int32_t lvgl_button_coordinates_##inst[] = DT_INST_PROP(inst, coordinates); \ 76 static const struct lvgl_button_input_config lvgl_button_input_config_##inst = { \ 77 .common_config.event_msgq = &LVGL_INPUT_EVENT_MSGQ(inst, button), \ [all …]
|
/Zephyr-latest/drivers/bbram/ |
D | npcx.h | 24 #define BBRAM_NPCX_DECL_CONFIG(inst) \ argument 25 static uint8_t bbram_npcx_emul_buffer_##inst[DT_INST_REG_SIZE_BY_NAME(inst, memory)]; \ 26 static uint8_t bbram_npcx_emul_status_##inst; \ 27 static const struct bbram_npcx_config bbram_cfg_##inst = { \ 28 .base_addr = (uintptr_t)bbram_npcx_emul_buffer_##inst, \ 29 .size = DT_INST_REG_SIZE_BY_NAME(inst, memory), \ 30 .status_reg_addr = (uintptr_t)&bbram_npcx_emul_status_##inst, \ 33 #define BBRAM_NPCX_DECL_CONFIG(inst) \ argument 34 static const struct bbram_npcx_config bbram_cfg_##inst = { \ 35 .base_addr = DT_INST_REG_ADDR_BY_NAME(inst, memory), \ [all …]
|
D | it8xxx2.h | 22 #define BBRAM_IT8XXX2_DECL_CONFIG(inst) \ argument 23 static uint8_t bbram_it8xxx2_emul_buffer_##inst[DT_INST_REG_SIZE(inst)]; \ 24 static const struct bbram_it8xxx2_config bbram_cfg_##inst = { \ 25 .base_addr = (uintptr_t)bbram_it8xxx2_emul_buffer_##inst, \ 26 .size = DT_INST_REG_SIZE(inst), \ 29 #define BBRAM_IT8XXX2_DECL_CONFIG(inst) \ argument 30 static const struct bbram_it8xxx2_config bbram_cfg_##inst = { \ 31 .base_addr = DT_INST_REG_ADDR(inst), \ 32 .size = DT_INST_REG_SIZE(inst), \
|
/Zephyr-latest/drivers/sensor/st/lps2xdf/ |
D | lps2xdf.c | 154 #define LPS2XDF_CFG_IRQ(inst) \ argument 156 .gpio_int = GPIO_DT_SPEC_INST_GET(inst, drdy_gpios), \ 157 .drdy_pulsed = DT_INST_PROP(inst, drdy_pulsed) 159 #define LPS2XDF_CFG_IRQ(inst) argument 162 #define LPS2XDF_CONFIG_COMMON(inst, name) \ argument 163 .odr = DT_INST_PROP(inst, odr), \ 164 .lpf = DT_INST_PROP(inst, lpf), \ 165 .avg = DT_INST_PROP(inst, avg), \ 167 IF_ENABLED(DT_INST_NODE_HAS_PROP(inst, fs), \ 168 (.fs = DT_INST_PROP(inst, fs),)) \ [all …]
|
/Zephyr-latest/subsys/input/ |
D | input_longpress.c | 106 #define INPUT_LONGPRESS_DEFINE(inst) \ argument 107 BUILD_ASSERT((DT_INST_PROP_LEN(inst, input_codes) == \ 108 DT_INST_PROP_LEN_OR(inst, short_codes, 0)) || \ 109 !DT_INST_NODE_HAS_PROP(inst, short_codes)); \ 110 BUILD_ASSERT(DT_INST_PROP_LEN(inst, input_codes) == DT_INST_PROP_LEN(inst, long_codes)); \ 112 INPUT_CALLBACK_DEFINE_NAMED(DEVICE_DT_GET_OR_NULL(DT_INST_PHANDLE(inst, input)), \ 113 longpress_cb, (void *)DEVICE_DT_INST_GET(inst), \ 114 longpress_cb_##inst); \ 116 static const uint16_t longpress_input_codes_##inst[] = DT_INST_PROP(inst, input_codes); \ 118 IF_ENABLED(DT_INST_NODE_HAS_PROP(inst, short_codes), ( \ [all …]
|
D | input_double_tap.c | 98 #define INPUT_DOUBLE_TAP_DEFINE(inst) \ argument 99 BUILD_ASSERT(DT_INST_PROP_LEN(inst, input_codes) == \ 100 DT_INST_PROP_LEN(inst, double_tap_codes)); \ 102 INPUT_CALLBACK_DEFINE_NAMED(DEVICE_DT_GET_OR_NULL(DT_INST_PHANDLE(inst, input)), \ 103 double_tap_cb, (void *)DEVICE_DT_INST_GET(inst), \ 104 double_tap_cb_##inst); \ 106 static const uint16_t double_tap_input_codes_##inst[] = DT_INST_PROP(inst, input_codes); \ 108 static const uint16_t double_tap_codes_##inst[] = DT_INST_PROP(inst, double_tap_codes); \ 111 double_tap_data_entries_##inst[DT_INST_PROP_LEN(inst, input_codes)]; \ 113 static const struct double_tap_config double_tap_config_##inst = { \ [all …]
|
/Zephyr-latest/drivers/display/ |
D | display_led_strip_matrix.c | 226 #define CHAIN_LENGTH(idx, inst) \ argument 227 COND_CODE_1(DT_INST_NODE_HAS_PROP(inst, chain_lengths), \ 228 (DT_INST_PROP_BY_IDX(inst, chain_lengths, idx)), \ 229 (DT_INST_PROP_BY_PHANDLE_IDX(inst, led_strips, idx, chain_length))) 231 #define STRIP_BUFFER_INITIALIZER(idx, inst) \ argument 233 .dev = DEVICE_DT_GET(DT_INST_PROP_BY_IDX(inst, led_strips, idx)), \ 234 .chain_length = CHAIN_LENGTH(idx, inst), \ 235 .pixels = pixels##inst##_##idx, \ 238 #define DECLARE_PIXELS(idx, inst) \ argument 239 static struct led_rgb pixels##inst##_##idx[CHAIN_LENGTH(idx, inst)]; [all …]
|
/Zephyr-latest/drivers/fpga/ |
D | fpga_ice40_common.h | 30 #define FPGA_ICE40_CONFIG_DEFINE(inst, derived_config_) \ argument 31 BUILD_ASSERT(DT_INST_PROP(inst, spi_max_frequency) >= FPGA_ICE40_SPI_HZ_MIN); \ 32 BUILD_ASSERT(DT_INST_PROP(inst, spi_max_frequency) <= FPGA_ICE40_SPI_HZ_MAX); \ 33 BUILD_ASSERT(DT_INST_PROP(inst, config_delay_us) >= FPGA_ICE40_CONFIG_DELAY_US_MIN); \ 34 BUILD_ASSERT(DT_INST_PROP(inst, config_delay_us) <= UINT16_MAX); \ 35 BUILD_ASSERT(DT_INST_PROP(inst, creset_delay_us) >= FPGA_ICE40_CRESET_DELAY_US_MIN); \ 36 BUILD_ASSERT(DT_INST_PROP(inst, creset_delay_us) <= UINT16_MAX); \ 37 BUILD_ASSERT(DT_INST_PROP(inst, leading_clocks) >= FPGA_ICE40_LEADING_CLOCKS_MIN); \ 38 BUILD_ASSERT(DT_INST_PROP(inst, leading_clocks) <= UINT8_MAX); \ 39 BUILD_ASSERT(DT_INST_PROP(inst, trailing_clocks) >= FPGA_ICE40_TRAILING_CLOCKS_MIN); \ [all …]
|
/Zephyr-latest/soc/nuvoton/npcx/common/ |
D | soc_dt.h | 35 * @param inst instance number 40 #define NPCX_DT_INST_PROP_ENUM_OR(inst, prop, default_value) \ argument 41 NPCX_DT_PROP_ENUM_OR(DT_DRV_INST(inst), prop, default_value) 56 * const struct npcx_clk_cfg clk_cfg = NPCX_DT_CLK_CFG_ITEM(inst); 58 * @param inst instance number for compatible defined in DT_DRV_COMPAT. 61 #define NPCX_DT_CLK_CFG_ITEM(inst) \ argument 63 .bus = NPCX_DT_INST_PROP_ENUM_OR(inst, clock_bus, \ 64 DT_PHA(DT_DRV_INST(inst), clocks, bus)), \ 65 .ctrl = DT_PHA(DT_DRV_INST(inst), clocks, ctl), \ 66 .bit = DT_PHA(DT_DRV_INST(inst), clocks, bit), \ [all …]
|