diff options
author | Fabio Utzig <utzig@utzig.org> | 2016-05-29 14:18:10 -0300 |
---|---|---|
committer | Fabio Utzig <utzig@utzig.org> | 2016-05-29 14:18:10 -0300 |
commit | 394a779adea155218650e13d25bf03a19fa9eee3 (patch) | |
tree | 71fd858dac9d923d8fe6fb5673c013244f113e89 /os/hal/ports/NRF51/NRF51822/hal_gpt_lld.h | |
parent | 3597ad7ed5266cf1a308d4c97974908fd9e94757 (diff) | |
parent | bc1d2835e816d6a0bacafbad03954018e31a1c45 (diff) | |
download | ChibiOS-Contrib-394a779adea155218650e13d25bf03a19fa9eee3.tar.gz ChibiOS-Contrib-394a779adea155218650e13d25bf03a19fa9eee3.tar.bz2 ChibiOS-Contrib-394a779adea155218650e13d25bf03a19fa9eee3.zip |
Merge pull request #76 from sdalu/priority
Enable priority validation, Fixed priorirty (nRF51 use a 2bit priority)
Diffstat (limited to 'os/hal/ports/NRF51/NRF51822/hal_gpt_lld.h')
-rw-r--r-- | os/hal/ports/NRF51/NRF51822/hal_gpt_lld.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/os/hal/ports/NRF51/NRF51822/hal_gpt_lld.h b/os/hal/ports/NRF51/NRF51822/hal_gpt_lld.h index 748be0a..9b4cc9b 100644 --- a/os/hal/ports/NRF51/NRF51822/hal_gpt_lld.h +++ b/os/hal/ports/NRF51/NRF51822/hal_gpt_lld.h @@ -70,21 +70,21 @@ * @brief GPTD1 interrupt priority level setting.
*/
#if !defined(NRF51_GPT_TIMER0_IRQ_PRIORITY) || defined(__DOXYGEN__)
-#define NRF51_GPT_TIMER0_IRQ_PRIORITY 7
+#define NRF51_GPT_TIMER0_IRQ_PRIORITY 3
#endif
/**
* @brief GPTD2 interrupt priority level setting.
*/
#if !defined(NRF51_GPT_TIMER1_IRQ_PRIORITY) || defined(__DOXYGEN__)
-#define NRF51_GPT_TIMER1_IRQ_PRIORITY 7
+#define NRF51_GPT_TIMER1_IRQ_PRIORITY 3
#endif
/**
* @brief GPTD3 interrupt priority level setting.
*/
#if !defined(NRF51_GPT_TIMER2_IRQ_PRIORITY) || defined(__DOXYGEN__)
-#define NRF51_GPT_TIMER2_IRQ_PRIORITY 7
+#define NRF51_GPT_TIMER2_IRQ_PRIORITY 3
#endif
/** @} */
@@ -97,7 +97,6 @@ #error "GPT driver activated but no TIMER peripheral assigned"
#endif
-#if 0
#if NRF51_GPT_USE_TIMER0 && \
!OSAL_IRQ_IS_VALID_PRIORITY(NRF51_GPT_TIMER0_IRQ_PRIORITY)
#error "Invalid IRQ priority assigned to TIMER0"
@@ -112,7 +111,6 @@ !OSAL_IRQ_IS_VALID_PRIORITY(NRF51_GPT_TIMER2_IRQ_PRIORITY)
#error "Invalid IRQ priority assigned to TIMER2"
#endif
-#endif
/*===========================================================================*/
/* Driver data structures and types. */
|