Skip to content

Instantly share code, notes, and snippets.

View caseymarquis's full-sized avatar

Casey Marquis caseymarquis

  • Hartford, Connecticut, US
View GitHub Profile
#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.
@caseymarquis
caseymarquis / gist:689fa4632c8fb23f4eaf251fbfc1d46f
Created July 5, 2016 17:32
RCM6600W Flexible WPA2 Connections
{
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,