nrf5: Exclude import of pwm.h in main.c if MICROPY_PY_MACHINE_PWM is not set, as nrf51 does not yet have this module yet.

This commit is contained in:
Glenn Ruben Bakke 2017-01-08 16:25:10 +01:00
parent c389872408
commit b75cefd383
1 changed files with 2 additions and 0 deletions

View File

@ -47,7 +47,9 @@
#include "nrf.h"
#include "pin.h"
#include "spi.h"
#if MICROPY_PY_MACHINE_PWM
#include "pwm.h"
#endif
#include "timer.h"
#if (BLUETOOTH_SD == 132)