9.8.2 Quick Start Guide for EXTINT - Callback
SAM D20 Xplained Pro
SAM D21 Xplained Pro
SAM R21 Xplained Pro
SAM L21 Xplained Pro
SAM L22 Xplained Pro
SAM DA1 Xplained Pro
SAM C21 Xplained Pro
External interrupt channel connected to the board LED is used
External interrupt channel is configured to detect both input signal edges
Callbacks are used to handle detections from the External Interrupt
This use case configures a physical I/O pin of the device so that it is routed to a logical External Interrupt Controller channel to detect rising and falling edges of the incoming signal. A callback function is used to handle detection events from the External Interrupt module asynchronously.
When the board button is pressed, the board LED will light up. When the board button is released, the LED will turn off.