Looking at some of the example code there seems to be two functions, WlanInterruptDisable and SpiPauseSpi, that are both used to disable the IRQ. I was wondering what the difference is between the two. I went searching through code of the Basic Wifi Application for the CC3000 and MSP430, and was able to find the definition for SpiPauseSpi and WlanInterruptDisable and they seem to do the same function.
In spi.c of BasicWifiApplication:
void
SpiPauseSpi(void) {
SPI_IRQ_PORT &= ~SPI_IRQ_PIN;
}
In board.c of BasicWifiApplitcation:
void
WlanInterruptDisable() {
P2IE &= ~BIT6;
}
In spi.h of BasicWifiApplitcation:
#define SPI_IRQ_PORT P2IE
#define SPI_IFG_PORT P2IFG
#define SPI_IRQ_PIN BIT6
Since in spi.h SPI_IRQ_PORT and SPI_IRQ_PIN are defined as the variables used in WlanInterruptDisable, are these functions the exact same, am I missing anything?
Thanks,
Justin