Lines Matching refs:inst
111 #define CY_PSOC6_PIN_TO_GPIO_REG_ADDR(inst, i) \ argument
112 DT_REG_ADDR(DT_PHANDLE(DT_INST_PINCTRL_0(inst, i), cypress_pins))
115 #define CY_PSOC6_PIN(inst, i) \ argument
116 DT_PHA(DT_INST_PINCTRL_0(inst, i), cypress_pins, pin)
119 #define CY_PSOC6_PIN_HSIOM(inst, i) \ argument
120 DT_PHA(DT_INST_PINCTRL_0(inst, i), cypress_pins, hsiom)
123 #define CY_PSOC6_PIN_FLAG(inst, i, flag) \ argument
124 DT_PROP(DT_INST_PINCTRL_0(inst, i), flag)
127 #define CY_PSOC6_PIN_FLAGS(inst, i) \ argument
128 (CY_PSOC6_PIN_FLAG(inst, i, bias_pull_up) << \
130 CY_PSOC6_PIN_FLAG(inst, i, bias_pull_down) << \
132 CY_PSOC6_PIN_FLAG(inst, i, drive_open_drain) << \
134 CY_PSOC6_PIN_FLAG(inst, i, drive_open_source) << \
136 CY_PSOC6_PIN_FLAG(inst, i, drive_push_pull) << \
138 CY_PSOC6_PIN_FLAG(inst, i, input_enable) << \
142 #define CY_PSOC6_DT_INST_PIN(inst, idx) \ argument
144 (GPIO_PRT_Type *)CY_PSOC6_PIN_TO_GPIO_REG_ADDR(inst, idx), \
145 CY_PSOC6_PIN(inst, idx), \
146 CY_PSOC6_PIN_HSIOM(inst, idx) << SOC_GPIO_FUNC_POS | \
147 CY_PSOC6_PIN_FLAGS(inst, idx) \
151 #define CY_PSOC6_DT_INST_NUM_PINS(inst) DT_INST_NUM_PINCTRLS_BY_IDX(inst, 0) argument
154 #define CY_PSOC6_PIN_ELEM(idx, inst) CY_PSOC6_DT_INST_PIN(inst, idx) argument
157 #define CY_PSOC6_DT_INST_PINS(inst) \ argument
158 { LISTIFY(CY_PSOC6_DT_INST_NUM_PINS(inst), \
159 CY_PSOC6_PIN_ELEM, (,), inst) \