nrf5/drivers/ticker: Add compile config guard in ticker.c to only include the driver if SOFT_PWM is configured in by board.

This commit is contained in:
Glenn Ruben Bakke 2017-05-17 19:50:39 +02:00 committed by glennrub
parent 234c9f3688
commit 086d79fbad
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,8 @@
#include "py/mphal.h"
#if MICROPY_PY_MACHINE_SOFT_PWM
#include "ticker.h"
#define FastTicker NRF_TIMER0
@ -169,3 +171,5 @@ int set_low_priority_callback(callback_ptr callback, int id) {
NVIC_SetPendingIRQ(LowPriority_IRQn);
return 0;
}
#endif // MICROPY_PY_MACHINE_SOFT_PWM