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:
parent
cc3364db7f
commit
31a54e063a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue