How to Use SAMA5D2 IRQs Under Linux®

2021-11-16
This application note describes how to handle SAMA5D2 GPIO-based IRQs under Linux.
The Arm® processor includes only two types of externally triggered interrupts: FIQs and IRQs. In SAMA5D2, FIQs and IRQs are exported to the external pins, and IRQs are shared internally by all peripherals.
Since IRQs from the Arm processor are also shared by the SAMA5D2 PIO controller, every GPIO can be used as an external interrupt in SAMA5D2. In this type of application, the GPIO can be configured so as to be monitored when it is subject to an input change. The IRQ interrupt is then asserted by the PIO controller.
The GPIO chip model has been introduced into the kernel, so GPIO-based IRQs can be requested and handled in user space. See Application for the application source codes. The demo shows another way to request and handle IRQs than the standard kernel API request_irq().

Microchip

SAMA5D2SAMA5D2 SeriesSAMA5D27 SOM1ATSAMA5D27-SOM1-EK1

More

Part#

More

More

Application note & Design Guide

More

More

Please see the document for details

More

More

English Chinese Chinese and English Japanese

12/2019

Rev. A

AN3352,DS00003352A

788 KB

- The full preview is over. If you want to read the whole 13 page document,please Sign in/Register -
  • +1 Like
  • Add to Favorites

Recommend

All reproduced articles on this site are for the purpose of conveying more information and clearly indicate the source. If media or individuals who do not want to be reproduced can contact us, which will be deleted.

Contact Us

Email: