This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define setOne(port, portShadow, bits) WrPortI(port, portShadow, RdPortI(port) | (bits)) | |
int main(void) { | |
init(); //Configures the board. A modified version of brd_init() | |
SetVectIntern(0x1D0, interrupt_serf_test); //Put the ISR in the interrupt table. | |
setOne(SFCR, &SFCRShadow, BIT_4 | BIT_2 | BIT_0 ); //Input on D. Interrupt Priority 1. 7 data bits. Page213 | |
while(1){ | |
//Print something every second or so | |
//so that we know we're still running. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
int encryptionType = (sets.encryptionType == encr_ccmp) || (sets.encryptionType == encr_tkip)? | |
(encr_tkip | encr_ccmp) : sets.encryptionType; | |
ifconfig( | |
IF_WIFI0, | |
IFS_WIFI_ENCRYPTION, encryptionType, | |
IFS_WIFI_PAIRWISE_ENCRYPTION, | |
(sets.encryptionType == encr_ccmp) || (sets.encryptionType == encr_tkip)? | |
encryptionType : encr_none, |