Lines Matching refs:_num
849 #define GPIO_EMUL_INT_CAPS(_num) (0 \ argument
850 + DT_INST_PROP(_num, rising_edge) \
852 + DT_INST_PROP(_num, falling_edge) \
854 + DT_INST_PROP(_num, high_level) \
856 + DT_INST_PROP(_num, low_level) \
860 #define DEFINE_GPIO_EMUL(_num) \ argument
863 gpio_emul_flags_##_num[DT_INST_PROP(_num, ngpios)]; \
865 static const struct gpio_emul_config gpio_emul_config_##_num = {\
868 GPIO_PORT_PIN_MASK_FROM_DT_INST(_num), \
870 .num_pins = DT_INST_PROP(_num, ngpios), \
871 .interrupt_caps = GPIO_EMUL_INT_CAPS(_num) \
874 DT_INST_PROP(_num, ngpios) <= GPIO_MAX_PINS_PER_PORT, \
877 static struct gpio_emul_data gpio_emul_data_##_num = { \
878 .flags = gpio_emul_flags_##_num, \
881 PM_DEVICE_DT_INST_DEFINE(_num, gpio_emul_pm_device_pm_action); \
883 DEVICE_DT_INST_DEFINE(_num, gpio_emul_init, \
884 PM_DEVICE_DT_INST_GET(_num), \
885 &gpio_emul_data_##_num, \
886 &gpio_emul_config_##_num, POST_KERNEL, \