stateMachine/lib/ssiSpi/ssiSpi.h
static void usingInterrupt(uint8_t n) {
		if (n == 3 || n == 4 || n == 24 || n == 33) {
			usingInterrupt(IRQ_PORTA);
		} else if (n == 0 || n == 1 || (n >= 16 && n <= 19) || n == 25 || n == 32) {
			usingInterrupt(IRQ_PORTB);
		} else if ((n >= 9 && n <= 13) || n == 15 || n == 22 || n == 23
		  || (n >= 27 && n <= 30)) {
			usingInterrupt(IRQ_PORTC);
		} else if (n == 2 || (n >= 5 && n <= 8) || n == 14 || n == 20 || n == 21) {
			usingInterrupt(IRQ_PORTD);
		} else if (n == 26 || n == 31) {
			usingInterrupt(IRQ_PORTE);
		}
	}
// If SPI is to used from within an interrupt, this function registers
// that interrupt with the SPI library, so beginTransaction() can
// prevent conflicts.  The input interruptNumber is the number used
// with attachInterrupt.  If SPI is used from a different interrupt
// (eg, a timer), interruptNumber should be 255.
If SPI is to used from within an interrupt, this function registers
that interrupt with the SPI library, so beginTransaction() can
prevent conflicts.  The input interruptNumber is the number used
with attachInterrupt.  If SPI is used from a different interrupt
, interruptNumber should be 255.
If SPI is to used from within an interrupt this function registers that interrupt with the SPI library so beginTransaction () can prevent conflicts . The input interruptNumber is the number used with attachInterrupt . If SPI is used from a different interrupt interruptNumber should be 255 .
static void usingInterrupt(uint8_t n) {
		if (n == 3 || n == 4 || n == 24 || n == 33) {
			usingInterrupt(IRQ_PORTA);
		} else if (n == 0 || n == 1 || (n >= 16 && n <= 19) || n == 25 || n == 32) {
			usingInterrupt(IRQ_PORTB);
		} else if ((n >= 9 && n <= 13) || n == 15 || n == 22 || n == 23
		  || (n >= 27 && n <= 30)) {
			usingInterrupt(IRQ_PORTC);
		} else if (n == 2 || (n >= 5 && n <= 8) || n == 14 || n == 20 || n == 21) {
			usingInterrupt(IRQ_PORTD);
		} else if (n == 26 || n == 31) {
			usingInterrupt(IRQ_PORTE);
		}
	}
static void usingInterrupt ( uint8_t n ) { if ( n == 3 || n == 4 || n == 24 || n == 33 ) { usingInterrupt ( IRQ_PORTA ) ; } else if ( n == 0 || n == 1 || ( n >= 16 && n <= 19 ) || n == 25 || n == 32 ) { usingInterrupt ( IRQ_PORTB ) ; } else if ( ( n >= 9 && n <= 13 ) || n == 15 || n == 22 || n == 23 || ( n >= 27 && n <= 30 ) ) { usingInterrupt ( IRQ_PORTC ) ; } else if ( n == 2 || ( n >= 5 && n <= 8 ) || n == 14 || n == 20 || n == 21 ) { usingInterrupt ( IRQ_PORTD ) ; } else if ( n == 26 || n == 31 ) { usingInterrupt ( IRQ_PORTE ) ; } }
If SPI is to used from within an interrupt, this function registers
that interrupt with the SPI library, so beginTransaction() can
prevent conflicts.
If SPI is to used from within an interrupt this function registers that interrupt with the SPI library so beginTransaction () can prevent conflicts .