tcp client for cc3000, using mbed socket interface
Dependencies: NVIC_set_all_priorities cc3000_hostdriver_mbedsocket mbed
Diff: init.cpp
- Revision:
- 4:51ad2e8bedb9
- Parent:
- 2:c8cd9df34be9
diff -r f97cdf75512e -r 51ad2e8bedb9 init.cpp
--- a/init.cpp Tue Oct 08 15:18:03 2013 +0000
+++ b/init.cpp Thu Nov 07 18:39:21 2013 +0000
@@ -33,11 +33,11 @@
PWR_EN1 = 0;
PWR_EN2 = 1;
- NVIC_set_all_irq_priorities(3);
+ NVIC_set_all_irq_priorities(0x3);
NVIC_SetPriority(SPI0_IRQn, 0x0); // Wi-Fi SPI interrupt must be higher priority than SysTick
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->PCR[16] |= PORT_PCR_ISF_MASK;
PORTA->ISFR |= (1 << 16);
}