Go to the source code of this file.
◆ intc_xmc4xxx_gpio_disable_interrupt()
int intc_xmc4xxx_gpio_disable_interrupt |
( |
int | port_id, |
|
|
int | pin ) |
Disable interrupt for specific port_id and pin combination.
- Parameters
-
port_id | Port index |
pin | pin Pin the port |
- Return values
-
0 | On susccess |
-EINVAL | If the specific port_id and pin combination has no interrupt enabled |
◆ intc_xmc4xxx_gpio_enable_interrupt()
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.
- Parameters
-
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 |
- Return values
-
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 |