stateMachine/lib/ssiSpi/ssiSpi.h
inline static void endTransaction(void) {
		#if 0
		if (!inTransactionFlag) {
			pinMode(SPI_TRANSACTION_MISMATCH_LED, OUTPUT);
			digitalWrite(SPI_TRANSACTION_MISMATCH_LED, HIGH);
		}
		inTransactionFlag = 0;
		#endif
		if (interruptMasksUsed) {
			if (interruptMasksUsed & 0x01) {
				NVIC_ISER0 = interruptSave[0];
			}
			#if NVIC_NUM_INTERRUPTS > 32
			if (interruptMasksUsed & 0x02) {
				NVIC_ISER1 = interruptSave[1];
			}
			#endif
			#if NVIC_NUM_INTERRUPTS > 64 && defined(NVIC_ISER2)
			if (interruptMasksUsed & 0x04) {
				NVIC_ISER2 = interruptSave[2];
			}
			#endif
			#if NVIC_NUM_INTERRUPTS > 96 && defined(NVIC_ISER3)
			if (interruptMasksUsed & 0x08) {
				NVIC_ISER3 = interruptSave[3];
			}
			#endif
		}
	}
// After performing a group of transfers and releasing the chip select
// signal, this function allows others to access the SPI bus
After performing a group of transfers and releasing the chip select
signal, this function allows others to access the SPI bus
After performing a group of transfers and releasing the chip select signal this function allows others to access the SPI bus
inline static void endTransaction(void) {
		#if 0
		if (!inTransactionFlag) {
			pinMode(SPI_TRANSACTION_MISMATCH_LED, OUTPUT);
			digitalWrite(SPI_TRANSACTION_MISMATCH_LED, HIGH);
		}
		inTransactionFlag = 0;
		#endif
		if (interruptMasksUsed) {
			if (interruptMasksUsed & 0x01) {
				NVIC_ISER0 = interruptSave[0];
			}
			#if NVIC_NUM_INTERRUPTS > 32
			if (interruptMasksUsed & 0x02) {
				NVIC_ISER1 = interruptSave[1];
			}
			#endif
			#if NVIC_NUM_INTERRUPTS > 64 && defined(NVIC_ISER2)
			if (interruptMasksUsed & 0x04) {
				NVIC_ISER2 = interruptSave[2];
			}
			#endif
			#if NVIC_NUM_INTERRUPTS > 96 && defined(NVIC_ISER3)
			if (interruptMasksUsed & 0x08) {
				NVIC_ISER3 = interruptSave[3];
			}
			#endif
		}
	}
inline static void endTransaction ( void ) { #if 0 if ( ! inTransactionFlag ) { pinMode ( SPI_TRANSACTION_MISMATCH_LED , OUTPUT ) ; digitalWrite ( SPI_TRANSACTION_MISMATCH_LED , HIGH ) ; } inTransactionFlag = 0 ; #endif if ( interruptMasksUsed ) { if ( interruptMasksUsed & 0x01 ) { NVIC_ISER0 = interruptSave [ 0 ] ; } #if NVIC_NUM_INTERRUPTS > 32 if ( interruptMasksUsed & 0x02 ) { NVIC_ISER1 = interruptSave [ 1 ] ; } #endif #if NVIC_NUM_INTERRUPTS > 64 && defined ( NVIC_ISER2 ) if ( interruptMasksUsed & 0x04 ) { NVIC_ISER2 = interruptSave [ 2 ] ; } #endif #if NVIC_NUM_INTERRUPTS > 96 && defined ( NVIC_ISER3 ) if ( interruptMasksUsed & 0x08 ) { NVIC_ISER3 = interruptSave [ 3 ] ; } #endif } }
After performing a group of transfers and releasing the chip select
signal, this function allows others to access the SPI bus
After performing a group of transfers and releasing the chip select signal this function allows others to access the SPI bus