nrf5: Adding initialization of timer module if enabled by MICROPY_PY_MACHINE_TIMER.

This commit is contained in:
Glenn Ruben Bakke 2016-12-26 16:15:26 +01:00
parent 9c828c7630
commit e4365fcac4

View File

@ -48,6 +48,7 @@
#include "pin.h"
#include "spi.h"
#include "pwm.h"
#include "timer.h"
#if (BLUETOOTH_SD == 132)
#include "nrf52_ble.h"
@ -108,6 +109,10 @@ int main(int argc, char **argv) {
pwm_init0();
#endif
#if MICROPY_PY_MACHINE_TIMER
timer_init0();
#endif
/*
extint_init0();
timer_init0();