nrf5/pwm: Initializing pwm instances in main.c if enabled by MICROPY_PY_MACHINE_PWM.
This commit is contained in:
parent
faa1b77844
commit
db1faf85f7
@ -47,6 +47,7 @@
|
||||
#include "nrf.h"
|
||||
#include "pin.h"
|
||||
#include "spi.h"
|
||||
#include "pwm.h"
|
||||
|
||||
#if (BLUETOOTH_SD == 132)
|
||||
#include "nrf52_ble.h"
|
||||
@ -98,10 +99,15 @@ int main(int argc, char **argv) {
|
||||
readline_init0();
|
||||
|
||||
pin_init0();
|
||||
|
||||
#if MICROPY_PY_MACHINE_SPI
|
||||
spi_init0();
|
||||
#endif
|
||||
|
||||
#if MICROPY_PY_MACHINE_PWM
|
||||
pwm_init0();
|
||||
#endif
|
||||
|
||||
/*
|
||||
extint_init0();
|
||||
timer_init0();
|
||||
|
Loading…
x
Reference in New Issue
Block a user