Attribute Macro rp6::prelude::interrupt

#[interrupt]
Expand description

Allows to define an interrupt service routine (ISR) by annotating a function with this macro. By convention, the function must be named like the handled interrupt.

For example:

#[interrupt]
fn INT0() {
    ...
}

The available interrupts on the RP6 (ATmega32) are:

RESET
INT0
INT1
INT2
TIMER2_COMP
TIMER2_OVF
TIMER1_CAPT
TIMER1_COMPA
TIMER1_COMPB
TIMER1_OVF
TIMER0_COMP
TIMER0_OVF
SPI_STC
USART_RXC
USART_UDRE
USART_TXC
ADC
EE_RDY
ANA_COMP
TWI
SPM_RDY