cpu/nrf52: ensure PWM is present
Not all members of the family have a PWM peripheral
This commit is contained in:
parent
899e97af30
commit
5ecf2e8bb1
@ -174,10 +174,12 @@ typedef enum {
|
|||||||
* always start with channel 0 to x and the undefined ones are from x+1
|
* always start with channel 0 to x and the undefined ones are from x+1
|
||||||
* to PWM_CHANNELS.
|
* to PWM_CHANNELS.
|
||||||
*/
|
*/
|
||||||
|
#if defined(PWM_PRESENT) || DOXYGEN
|
||||||
typedef struct {
|
typedef struct {
|
||||||
NRF_PWM_Type *dev; /**< PWM device descriptor */
|
NRF_PWM_Type *dev; /**< PWM device descriptor */
|
||||||
gpio_t pin[PWM_CHANNELS]; /**< PWM out pins */
|
gpio_t pin[PWM_CHANNELS]; /**< PWM out pins */
|
||||||
} pwm_conf_t;
|
} pwm_conf_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(CPU_MODEL_NRF52832XXAA)
|
#if !defined(CPU_MODEL_NRF52832XXAA)
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user