Lancaster University's (short term!) clone of mbed-src for micro:bit. This is a copy of the github branch https://github.com/lancaster-university/mbed-classic

Fork of mbed-src by mbed official

Files at this revision

API Documentation at this revision

Comitter:
LancasterUniversity
Date:
Thu Apr 07 01:03:22 2016 +0100
Parent:
636:56d3b4d3b094
Child:
638:976bf2debae2
Commit message:
Synchronized with git rev 5678d944
Author: James Devine
mbed-classic: reduced priority of timer interrupt

A higher priority ticker interrupt caused interoperability issues
with the nordic soft device. This commit reduces the interupt priority.

Changed in this revision

targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/us_ticker.c Show annotated file Show diff for this revision Revisions of this file
--- a/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/us_ticker.c	Thu Apr 07 01:03:20 2016 +0100
+++ b/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/us_ticker.c	Thu Apr 07 01:03:22 2016 +0100
@@ -28,7 +28,7 @@
 
 #define MAX_TMR1_COUNTER_VAL     0x0000FFFF               // Run the timer in 16 bit mode, for consistency with RTC algorithm above.
 #define TMR1_CLOCK_FREQ          (uint32_t)(1000000)	  // Run at 1MHz so the lower power 1MHz clock source can be used.
-#define TMR1_IRQ_PRI            1                        /**< Priority of the TMR1 interrupt (used
+#define TMR1_IRQ_PRI            3                        /**< Priority of the TMR1 interrupt (used
                                                           *  for checking for timeouts and executing
                                                           *  timeout handlers). This must be the same
                                                           *  as APP_IRQ_PRIORITY_LOW; taken from the
@@ -286,4 +286,4 @@
 {
     //NRF_TIMER1->EVENTS_COMPARE[3] = 0;
     //NRF_TIMER1->EVENTS_COMPARE[0] = 0;
-}
+}
\ No newline at end of file