cpu/nrf52: ensure PWM is present

Not all members of the family have a PWM peripheral
This commit is contained in:
Benjamin Valentin 2020-06-26 16:31:15 +02:00
parent 899e97af30
commit 5ecf2e8bb1

View File

@ -174,10 +174,12 @@ typedef enum {
* always start with channel 0 to x and the undefined ones are from x+1
* to PWM_CHANNELS.
*/
#if defined(PWM_PRESENT) || DOXYGEN
typedef struct {
NRF_PWM_Type *dev; /**< PWM device descriptor */
gpio_t pin[PWM_CHANNELS]; /**< PWM out pins */
} pwm_conf_t;
#endif
#if !defined(CPU_MODEL_NRF52832XXAA)
/**