Module eic

Source
Expand description

Implementation of the SAM4L External Interrupt Controller (EIC).

Datasheet section “21. External Interrupt Controller (EIC)”.

The External Interrupt Controller (EIC) allows pins to be configured as external interrupts. Each external interrupt has its own interrupt request and can be individually interrupted. Each external interrupt can generate an interrupt on rising or falling edge, or high or low level. Every interrupt input has a configurable filter to remove spikes from the interrupt source. Every interrupt pin can also be configured to be asynchronous in order to wake up the part from sleep modes where the CLK_SYNC clock has been disabled.

In order to use eic module on imix, comment out button driver in main.rs please! The default setup is filter-enabled and asynchronous.

Structs§

Eic
EicRegisters

Enums§

FilterMode
Enum for enabling or disabling spurious event filtering (i.e. de-bouncing control).
Line
The sam4l chip supports 9 external interrupt lines: Ext1 - Ext8 and an additional Non-Maskable Interrupt (NMI) pin.
SynchronizationMode
Enum for selecting synchronous or asynchronous mode. Interrupts in asynchronous mode can wake up the system from deep sleep mode.