nrf5/drivers: Adding requirement for nrf52 target on the epaper sld00200p for now. There is no ported PWM module for nrf51 target yet. Hence, soft PWM for nrf51 needs to be added.

This commit is contained in:
Glenn Ruben Bakke 2017-01-04 20:05:01 +01:00
parent cc3364db7f
commit 31a54e063a
1 changed files with 3 additions and 2 deletions

View File

@ -27,11 +27,12 @@
#include "py/obj.h"
#include "py/runtime.h"
// For now PWM is only enabled for nrf52 targets.
#if MICROPY_PY_DISPLAY_EPAPER_SLD00200P && NRF52
#include "hal_spi.h"
#include "hal_pwm.h"
#if MICROPY_PY_DISPLAY_EPAPER_SLD00200P
typedef struct _epaper_sld00200p_obj_t {
mp_obj_base_t base;
SPI_HandleTypeDef *spi;