Go to the source code of this file.
◆ GPIO_PORT_PIN_MASK_FROM_DT_INST
#define GPIO_PORT_PIN_MASK_FROM_DT_INST |
( |
| inst | ) |
|
Value:
#define GPIO_PORT_PIN_MASK_FROM_DT_NODE(node_id)
Makes a bitmask of allowed GPIOs from the "gpio-reserved-ranges" and "ngpios" DT properties values.
Definition gpio_utils.h:36
#define DT_DRV_INST(inst)
Node identifier for an instance of a DT_DRV_COMPAT compatible.
Definition devicetree.h:3869
Make a bitmask of allowed GPIOs from a DT_DRV_COMPAT instance's GPIO "gpio-reserved-ranges"
and "ngpios"
DT properties values.
- Parameters
-
inst | DT_DRV_COMPAT instance number |
- Returns
- the bitmask of allowed gpios
- See also
- GPIO_DT_PORT_PIN_MASK_NGPIOS_EXC()
◆ GPIO_PORT_PIN_MASK_FROM_DT_NODE
#define GPIO_PORT_PIN_MASK_FROM_DT_NODE |
( |
| node_id | ) |
|
Value:
#define DT_PROP(node_id, prop)
Get a devicetree property value.
Definition devicetree.h:752
#define GPIO_DT_PORT_PIN_MASK_NGPIOS_EXC(node_id, ngpios)
Makes a bitmask of allowed GPIOs from DT "gpio-reserved-ranges" property and "ngpios" argument.
Definition gpio.h:658
Makes a bitmask of allowed GPIOs from the "gpio-reserved-ranges"
and "ngpios"
DT properties values.
- Parameters
-
node_id | GPIO controller node identifier. |
- Returns
- the bitmask of allowed gpios
- See also
- GPIO_DT_PORT_PIN_MASK_NGPIOS_EXC()
◆ GPIO_PORT_PIN_MASK_FROM_NGPIOS
#define GPIO_PORT_PIN_MASK_FROM_NGPIOS |
( |
| ngpios | ) |
|
Value:
uint32_t gpio_port_pins_t
Identifies a set of pins associated with a port.
Definition gpio.h:234
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
◆ gpio_fire_callbacks()
Generic function to go through and fire callback from a callback list.
- Parameters
-
list | A pointer on the gpio callback list |
port | A pointer on the gpio driver instance |
pins | The actual pin mask that triggered the interrupt |
◆ gpio_manage_callback()
Generic function to insert or remove a callback from a callback list.
- Parameters
-
callbacks | A pointer to the original list of callbacks (can be NULL) |
callback | A pointer of the callback to insert or remove from the list |
set | A boolean indicating insertion or removal of the callback |
- Returns
- 0 on success, negative errno otherwise.