diff --git a/nrf5/boards/pca10040/mpconfigboard.h b/nrf5/boards/pca10040/mpconfigboard.h index 8dd0d43d0c..0b78f700a3 100644 --- a/nrf5/boards/pca10040/mpconfigboard.h +++ b/nrf5/boards/pca10040/mpconfigboard.h @@ -64,5 +64,8 @@ #define MICROPY_HW_SPI0_MISO (24) // A24 (Arduino D12) #define MICROPY_HW_SPI0_NSS (22) // A22 (Arduino D10) +#define MICROPY_HW_PWM0_NAME "PWM0" +#define MICROPY_HW_PWM1_NAME "PWM1" +#define MICROPY_HW_PWM2_NAME "PWM2" #define HELP_TEXT_BOARD_LED "1,2,3,4" diff --git a/nrf5/boards/pca10056/mpconfigboard.h b/nrf5/boards/pca10056/mpconfigboard.h index 35d02ad232..feee311ddf 100644 --- a/nrf5/boards/pca10056/mpconfigboard.h +++ b/nrf5/boards/pca10056/mpconfigboard.h @@ -59,4 +59,11 @@ #define MICROPY_HW_UART1_RTS (5) #define MICROPY_HW_UART1_HWFC (1) +#define MICROPY_HW_PWM0_NAME "PWM0" +#define MICROPY_HW_PWM1_NAME "PWM1" +#define MICROPY_HW_PWM2_NAME "PWM2" +#if 0 +#define MICROPY_HW_PWM3_NAME "PWM3" +#endif + #define HELP_TEXT_BOARD_LED "1,2,3,4"