![]() |
Zephyr API 4.4.99
A Scalable Open Source RTOS
|
Go to the source code of this file.
Functions | |
| int | intc_xmc4xxx_gpio_enable_interrupt (int port_id, int pin, enum gpio_int_mode mode, enum gpio_int_trig trig, void(*fn)(const struct device *, int), void *user_data) |
| Enable interrupt for specific port_id and pin combination. | |
| int | intc_xmc4xxx_gpio_disable_interrupt (int port_id, int pin) |
| Disable interrupt for specific port_id and pin combination. | |
| int intc_xmc4xxx_gpio_disable_interrupt | ( | int | port_id, |
| int | pin ) |
Disable interrupt for specific port_id and pin combination.
| port_id | Port index |
| pin | pin Pin the port |
| 0 | On susccess |
| -EINVAL | If the specific port_id and pin combination has no interrupt enabled |
| int intc_xmc4xxx_gpio_enable_interrupt | ( | int | port_id, |
| int | pin, | ||
| enum gpio_int_mode | mode, | ||
| enum gpio_int_trig | trig, | ||
| void(* | fn )(const struct device *, int), | ||
| void * | user_data ) |
Enable interrupt for specific port_id and pin combination.
| port_id | Port index |
| pin | pin Pin the port |
| mode | Level or edge interrupt |
| trig | Trigger edge type (falling, rising or both) |
| fn | Callback function |
| user_data | Parameter to the interrupt callback |
| 0 | On success |
| -ENOTSUP | If the specific port_id/pin combination is not supported or not defined in the dts |
| -EBUSY | If the interrupt line is already used by a different port_id/pin |
| -EINVAL | If the trigger combination is invalid |