exclude TIMER0 from GPT if already used for system ticks

This commit is contained in:
Stephane D'Alu 2016-02-06 15:16:48 +01:00
parent bc3392813c
commit ed35ba3818
1 changed files with 6 additions and 1 deletions

View File

@ -94,7 +94,12 @@
#if !NRF51_GPT_USE_TIMER0 && !NRF51_GPT_USE_TIMER1 && \ #if !NRF51_GPT_USE_TIMER0 && !NRF51_GPT_USE_TIMER1 && \
!NRF51_GPT_USE_TIMER2 !NRF51_GPT_USE_TIMER2
#error "GPT driver activated but no TIM peripheral assigned" #error "GPT driver activated but no TIMER peripheral assigned"
#endif
#if (NRF51_GPT_USE_TIMER0 == TRUE) && \
(NRF51_SYSTEM_TICKS == NRF51_SYSTEM_TICKS_AS_TIMER)
#error "GPT driver can't use TIMER0 as currently used by ST driver"
#endif #endif
#if 0 #if 0