mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/itg320x: pass arg to gpio_init_int
Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
This commit is contained in:
parent
784eb048b7
commit
30134eaaab
@ -96,11 +96,11 @@ int itg320x_init_int(const itg320x_t *dev, itg320x_drdy_int_cb_t cb, void *arg)
|
||||
|
||||
if (dev->params.int_level == ITG320X_INT_HIGH) {
|
||||
/* for high active interrupt signal (default) */
|
||||
gpio_init_int(dev->params.int_pin, GPIO_IN, GPIO_RISING, cb, 0);
|
||||
gpio_init_int(dev->params.int_pin, GPIO_IN, GPIO_RISING, cb, arg);
|
||||
}
|
||||
else {
|
||||
/* for low active interrupt signal (default) */
|
||||
gpio_init_int(dev->params.int_pin, GPIO_IN, GPIO_FALLING, cb, 0);
|
||||
gpio_init_int(dev->params.int_pin, GPIO_IN, GPIO_FALLING, cb, arg);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user