nrf5: Exclude import of pwm.h in modmachine.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:26:03 +01:00
parent b75cefd383
commit 8e71bcea07
1 changed files with 2 additions and 0 deletions

View File

@ -39,7 +39,9 @@
#include "gccollect.h"
#include "pin.h"
#include "spi.h"
#if MICROPY_PY_MACHINE_PWM
#include "pwm.h"
#endif
#define PYB_RESET_HARD (0)
#define PYB_RESET_WDT (1)