Nut/OS  4.10.3
API Reference
Interrupt Management

Interrupt registration and handling. More...

Collaboration diagram for Interrupt Management:

Data Structures

struct  IRQ_HANDLER

Defines

#define NUT_IRQCTL_INIT   0
#define NUT_IRQCTL_CLEAR   1
#define NUT_IRQCTL_STATUS   16
#define NUT_IRQCTL_ENABLE   17
#define NUT_IRQCTL_DISABLE   18
#define NUT_IRQCTL_GETMODE   24
#define NUT_IRQCTL_SETMODE   25
#define NUT_IRQCTL_GETPRIO   32
#define NUT_IRQCTL_SETPRIO   33
#define NUT_IRQCTL_GETCOUNT   96
#define NUT_IRQCTL_SETCOUNT   97
#define NUT_IRQMODE_NONE   0
#define NUT_IRQMODE_LOWLEVEL   1
#define NUT_IRQMODE_HIGHLEVEL   2
#define NUT_IRQMODE_FALLINGEDGE   5
#define NUT_IRQMODE_RISINGEDGE   6
#define NUT_IRQMODE_EDGE   7
#define NUT_IRQMODE_LEVEL   8

Functions

void SIG_ADC (void)
 ADC conversion complete interrupt entry.
void SIG_COMPARATOR (void)
 Analog comparator interrupt entry.
void SIG_EEPROM (void)
 EEPROM ready interrupt entry.
void SIG_INTERRUPT0 (void)
 External interrupt 0 entry.
void SIG_INTERRUPT1 (void)
 External interrupt 1 entry.
void SIG_INTERRUPT2 (void)
 External interrupt 2 entry.
void SIG_INTERRUPT3 (void)
 External interrupt 3 entry.
void SIG_INTERRUPT4 (void)
 External interrupt 4 entry.
void SIG_INTERRUPT5 (void)
 External interrupt 5 entry.
void SIG_INTERRUPT6 (void)
 External interrupt 6 entry.
void SIG_INTERRUPT7 (void)
 External interrupt 7 entry.
void SIG_SPI (void)
 SPI interrupt entry.
void SIG_OUTPUT_COMPARE0 (void)
 Timer 0 output compare interrupt entry.
void SIG_OVERFLOW0 (void)
 Timer 0 overflow interrupt entry.
void SIG_INPUT_CAPTURE1 (void)
 Timer 1 input capture interrupt entry.
void SIG_OUTPUT_COMPARE1A (void)
 Timer 1A output compare interrupt entry.
void SIG_OUTPUT_COMPARE1B (void)
 Timer 1B output compare interrupt entry.
void SIG_OVERFLOW1 (void)
 Timer 1 overflow interrupt entry.
void SIG_OUTPUT_COMPARE2 (void)
 Timer 2 output compare interrupt entry.
void SIG_OVERFLOW2 (void)
 Timer 2 overflow interrupt entry.
void SIG_UART_RECV (void)
 Uart0 receive complete interrupt entry.
void SIG_UART_TRANS (void)
 Uart0 transmit complete interrupt entry.
void SIG_UART_DATA (void)
 Uart0 data register empty interrupt entry.

Variables

IRQ_HANDLER sig_ADC
IRQ_HANDLER sig_COMPARATOR
IRQ_HANDLER sig_EEPROM_READY
IRQ_HANDLER sig_INTERRUPT0
IRQ_HANDLER sig_INTERRUPT1
IRQ_HANDLER sig_INTERRUPT2
IRQ_HANDLER sig_INTERRUPT3
IRQ_HANDLER sig_INTERRUPT4
IRQ_HANDLER sig_INTERRUPT5
IRQ_HANDLER sig_INTERRUPT6
IRQ_HANDLER sig_INTERRUPT7
IRQ_HANDLER sig_SPI
IRQ_HANDLER sig_OUTPUT_COMPARE0
IRQ_HANDLER sig_OVERFLOW0
IRQ_HANDLER sig_INPUT_CAPTURE1
IRQ_HANDLER sig_OUTPUT_COMPARE1A
IRQ_HANDLER sig_OUTPUT_COMPARE1B
IRQ_HANDLER sig_OVERFLOW1
IRQ_HANDLER sig_OUTPUT_COMPARE2
IRQ_HANDLER sig_OVERFLOW2
IRQ_HANDLER sig_UART0_RECV
IRQ_HANDLER sig_UART0_TRANS
IRQ_HANDLER sig_UART0_DATA

Detailed Description

Interrupt registration and handling.


Define Documentation

#define NUT_IRQCTL_INIT   0
#define NUT_IRQCTL_CLEAR   1

Definition at line 124 of file irqreg.h.

#define NUT_IRQCTL_STATUS   16

Definition at line 125 of file irqreg.h.

#define NUT_IRQCTL_ENABLE   17

Definition at line 126 of file irqreg.h.

Referenced by GpioIrqEnable(), NplIrqEnable(), NutIrqEnable(), and NutSysIrqEnable().

#define NUT_IRQCTL_DISABLE   18

Definition at line 127 of file irqreg.h.

Referenced by GpioIrqDisable(), NplIrqDisable(), and NutIrqDisable().

#define NUT_IRQCTL_GETMODE   24

Definition at line 128 of file irqreg.h.

Referenced by NutIrqSetMode().

#define NUT_IRQCTL_SETMODE   25

Definition at line 129 of file irqreg.h.

Referenced by NutIrqSetMode().

#define NUT_IRQCTL_GETPRIO   32

Definition at line 130 of file irqreg.h.

Referenced by NutIrqSetPriority().

#define NUT_IRQCTL_SETPRIO   33

Definition at line 131 of file irqreg.h.

Referenced by NutIrqSetPriority().

#define NUT_IRQCTL_GETCOUNT   96

Definition at line 132 of file irqreg.h.

#define NUT_IRQCTL_SETCOUNT   97

Definition at line 133 of file irqreg.h.

#define NUT_IRQMODE_NONE   0

Definition at line 135 of file irqreg.h.

Referenced by NutIrqSetMode().

#define NUT_IRQMODE_LOWLEVEL   1

Definition at line 136 of file irqreg.h.

Referenced by NplRegisterIrqHandler().

#define NUT_IRQMODE_HIGHLEVEL   2

Definition at line 137 of file irqreg.h.

Referenced by NicRxLanc().

#define NUT_IRQMODE_FALLINGEDGE   5

Definition at line 138 of file irqreg.h.

Referenced by Sc16is752UsartInit().

#define NUT_IRQMODE_RISINGEDGE   6

Definition at line 139 of file irqreg.h.

Referenced by FeederThread(), NicRxLanc(), and VsPlayerInit().

#define NUT_IRQMODE_EDGE   7

Definition at line 140 of file irqreg.h.

#define NUT_IRQMODE_LEVEL   8

Definition at line 141 of file irqreg.h.

Referenced by TwInit().


Function Documentation

SIG_ADC ( void  )

ADC conversion complete interrupt entry.

SIG_COMPARATOR ( void  )

Analog comparator interrupt entry.

SIG_EEPROM ( void  )

EEPROM ready interrupt entry.

SIG_INTERRUPT0 ( void  )

External interrupt 0 entry.

SIG_INTERRUPT1 ( void  )

External interrupt 1 entry.

SIG_INTERRUPT2 ( void  )

External interrupt 2 entry.

SIG_INTERRUPT3 ( void  )

External interrupt 3 entry.

SIG_INTERRUPT4 ( void  )

External interrupt 4 entry.

Infrared decoder signal edge handler.

Definition at line 114 of file irsony.c.

References _BV, cbi, inb, IR_SIGNAL_BIT, IR_SIGNAL_PIN, nut_ircode, nut_irqueue, NutEventPostFromIrq, and sbi.

SIG_INTERRUPT5 ( void  )

External interrupt 5 entry.

SIG_INTERRUPT6 ( void  )

External interrupt 6 entry.

SIG_INTERRUPT7 ( void  )

External interrupt 7 entry.

SIG_SPI ( void  )

SPI interrupt entry.

SIG_OUTPUT_COMPARE0 ( void  )

Timer 0 output compare interrupt entry.

SIG_OVERFLOW0 ( void  )

Timer 0 overflow interrupt entry.

SIG_INPUT_CAPTURE1 ( void  )

Timer 1 input capture interrupt entry.

SIG_OUTPUT_COMPARE1A ( void  )

Timer 1A output compare interrupt entry.

SIG_OUTPUT_COMPARE1B ( void  )

Timer 1B output compare interrupt entry.

SIG_OVERFLOW1 ( void  )

Timer 1 overflow interrupt entry.

SIG_OUTPUT_COMPARE2 ( void  )

Timer 2 output compare interrupt entry.

SIG_OVERFLOW2 ( void  )

Timer 2 overflow interrupt entry.

Timer 2 overflow handler.

Definition at line 96 of file irsony.c.

References cbi, IRTIMER_START, and outb.

SIG_UART_RECV ( void  )

Uart0 receive complete interrupt entry.

SIG_UART_TRANS ( void  )

Uart0 transmit complete interrupt entry.

SIG_UART_DATA ( void  )

Uart0 data register empty interrupt entry.


Variable Documentation

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrAdcIrqCtl                
}

Definition at line 89 of file ih_adc.c.

Referenced by ADCInit().

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrAnalogCompIrqCtl         
}

Definition at line 89 of file ih_analog_comp.c.

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrEepromRdyIrqCtl          
}

Definition at line 89 of file ih_ee_ready.c.

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrInterrupt0Ctl            
}

Definition at line 85 of file ih_int0.c.

Referenced by NplRegisterIrqHandler().

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrInterrupt1Ctl            
}

Definition at line 85 of file ih_int1.c.

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrInterrupt2Ctl            
}

Definition at line 85 of file ih_int2.c.

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrInterrupt3Ctl            
}

Definition at line 85 of file ih_int3.c.

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrInterrupt4Ctl            
}

Definition at line 85 of file ih_int4.c.

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrInterrupt5Ctl            
}

Definition at line 85 of file ih_int5.c.

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrInterrupt6Ctl            
}

Definition at line 85 of file ih_int6.c.

Referenced by IDEInit().

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrInterrupt7Ctl            
}

Definition at line 85 of file ih_int7.c.

Referenced by IDEInit(), and wlandrv_Init().

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrSpiIrqCtl                
}

Definition at line 82 of file ih_spi_stc.c.

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrTimer0CompIrqCtl         
}

Definition at line 111 of file ih_timer0_comp.c.

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrTimer0OvfIrqCtl          
}

Definition at line 86 of file ih_timer0_ovf.c.

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrTimer1CaptIrqCtl         
}

Definition at line 107 of file ih_timer1_capt.c.

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrTimer1CompAIrqCtl        
}

Definition at line 96 of file ih_timer1_compa.c.

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrTimer1CompBIrqCtl        
}

Definition at line 86 of file ih_timer1_compb.c.

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrTimer1OvfIrqCtl          
}

Definition at line 96 of file ih_timer1_ovf.c.

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrTimer2CompIrqCtl         
}

Definition at line 111 of file ih_timer2_comp.c.

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrTimer2OvfIrqCtl          
}

Definition at line 86 of file ih_timer2_ovf.c.

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrUart0RxIrqCtl            
}

Definition at line 95 of file ih_usart0_rx.c.

Referenced by AhdlcAvrInit(), and UartAvrInit().

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrUart0TxIrqCtl            
}

Definition at line 99 of file ih_usart0_tx.c.

Referenced by UartAvrInit().

Initial value:
 {



    NULL,                       
    NULL,                       
    AvrUart0TxDataIrqCtl        
}

Definition at line 99 of file ih_usart0_udre.c.

Referenced by AhdlcAvrInit().