You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/11/01 10:35:17 UTC

[GitHub] andrzej-kaczmarek closed pull request #231: hal/timer: do not assing ISR prio building for RIOT

andrzej-kaczmarek closed pull request #231: hal/timer: do not assing ISR prio building for RIOT
URL: https://github.com/apache/mynewt-nimble/pull/231
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/porting/nimble/src/hal_timer.c b/porting/nimble/src/hal_timer.c
index 458e70f9..afe9a985 100644
--- a/porting/nimble/src/hal_timer.c
+++ b/porting/nimble/src/hal_timer.c
@@ -499,7 +499,9 @@ hal_timer_init(int timer_num, void *cfg)
 
     /* Disable IRQ, set priority and set vector in table */
     NVIC_DisableIRQ(irq_num);
+#ifndef RIOT_VERSION
     NVIC_SetPriority(irq_num, (1 << __NVIC_PRIO_BITS) - 1);
+#endif
 #if MYNEWT
     NVIC_SetVector(irq_num, (uint32_t)irq_isr);
 #else


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services