my copy of the websocket demo
Dependencies: NVIC_set_all_priorities WebSocketClient cc3000_hostdriver_mbedsocket mbed
Fork of cc3000_websocket_demo by
Diff: init.cpp
- Revision:
- 1:214d23448fa7
- Parent:
- 0:7f1ab388e9c4
- Child:
- 2:398f4fa8fb4a
--- a/init.cpp Tue Oct 01 15:42:21 2013 +0000 +++ b/init.cpp Wed Oct 02 20:56:46 2013 +0200 @@ -22,7 +22,7 @@ NVIC_SetPriority(PORTA_IRQn, 0x1); NVIC_SetPriority(SysTick_IRQn, 0x2); // SysTick set to lower priority than Wi-Fi SPI bus interrupt PORTA->PCR[16] |=PORT_PCR_ISF_MASK; - PORTA->ISFR |= (1<<16); + PORTA->ISFR |= (1 << 16); } #elif (MY_BOARD == WIFI_DIPCORTEX) @@ -33,7 +33,11 @@ * \return none */ void init() { + NVIC_SetPriority(SSP1_IRQn, 0x0); + NVIC_SetPriority(PIN_INT0_IRQn, 0x1); + // SysTick set to lower priority than Wi-Fi SPI bus interrupt + NVIC_SetPriority(SysTick_IRQn, 0x2); } #else