Lines Matching full:inst
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), \
78 .input_codes = lvgl_button_input_codes_##inst, \
79 .num_codes = DT_INST_PROP_LEN(inst, input_codes), \
80 .coordinates = lvgl_button_coordinates_##inst, \
82 static struct lvgl_common_input_data lvgl_common_input_data_##inst; \
83 DEVICE_DT_INST_DEFINE(inst, NULL, NULL, &lvgl_common_input_data_##inst, \
84 &lvgl_button_input_config_##inst, POST_KERNEL, \