Skip to content

Commit

Permalink
second commit
Browse files Browse the repository at this point in the history
  • Loading branch information
afshinkdoost committed Jan 27, 2016
1 parent 3c8ebc7 commit f8cf722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpio_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ rpigpio_ioctl( struct file *filp, unsigned int cmd, unsigned long arg)
std.pin_dir_arr[mdata.pin] = DIRECTION_OUT;
printk(KERN_DEBUG "[MODE] Pin %d set as Output\n", mdata.pin);
} else if (mdata.data == MODE_IRQ) {
request_irq(gpio_to_irq(mdata.pin), rpi_gpio_2_handler, IRQF_SHARED | IRQF_TRIGGER_RISING, THIS_MODULE->name, THIS_MODULE->name);
request_irq(gpio_to_irq(mdata.pin), rpi_gpio_2_handler, IRQF_SHARED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, THIS_MODULE->name, THIS_MODULE->name);
printk(KERN_DEBUG "[MODE] Pin %d déclenchement IRQ\n", mdata.pin);
} else {
spin_unlock(&std.lock);
Expand Down Expand Up @@ -386,4 +386,4 @@ module_exit(rpigpio_mcleanup);
MODULE_LICENSE("GPL");
MODULE_AUTHOR(RPIGPIO_MOD_AUTH);
MODULE_DESCRIPTION(RPIGPIO_MOD_DESC);
MODULE_SUPPORTED_DEVICE(RPIGPIO_MOD_SDEV);
MODULE_SUPPORTED_DEVICE(RPIGPIO_MOD_SDEV);

0 comments on commit f8cf722

Please sign in to comment.