exclude TIMER0 from GPT if already used for system ticks
This commit is contained in:
parent
bc3392813c
commit
ed35ba3818
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue