setting the polarity and the trigger mode of interrupts. Tested by: Mark Santcroos, Russell Jackson, Christian Hiris