Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NVIC_set_all_priorities cc3000_hostdriver_mbedsocket libxively mbed
Diff: init.cpp
- Revision:
- 4:cea07f0d1eeb
- Parent:
- 0:cc7d755246b3
diff -r 6eb505b0beb3 -r cea07f0d1eeb init.cpp
--- a/init.cpp Mon Oct 14 15:33:28 2013 +0000
+++ b/init.cpp Thu Nov 07 20:22:09 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);
}