sam: Add functions for interrupt on gpio line.
sam: Convenience functions for reading gpio.