From b4dc9254ac908b3721dd7e855633918c51c95cac Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Sat, 17 Dec 2016 01:29:12 +0100 Subject: [PATCH] nrf5: Updating mpconfigport.h to set a default for PWM machine module to be enabled by default, if not disabled in a board config. Refactoring order in the file. --- nrf5/mpconfigport.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nrf5/mpconfigport.h b/nrf5/mpconfigport.h index b43dc9940e..e76205050b 100644 --- a/nrf5/mpconfigport.h +++ b/nrf5/mpconfigport.h @@ -101,12 +101,17 @@ #define MICROPY_PY_MACHINE_PULSE (0) #define MICROPY_PY_MACHINE_I2C (0) +#define MICROPY_PY_MACHINE_SPI_MIN_DELAY (0) +#define MICROPY_PY_FRAMEBUF (0) + + #ifndef MICROPY_PY_MACHINE_SPI #define MICROPY_PY_MACHINE_SPI (1) #endif -#define MICROPY_PY_MACHINE_SPI_MIN_DELAY (0) -#define MICROPY_PY_FRAMEBUF (0) +#ifndef MICROPY_PY_MACHINE_PWM +#define MICROPY_PY_MACHINE_PWM (1) +#endif #ifndef MICROPY_PY_USOCKET #define MICROPY_PY_USOCKET (1)