drivers/periph_pwm: define mapping struct for arduino pins

This commit is contained in:
Alexandre Abadie
2019-11-15 17:51:45 +01:00
parent 384b1aeec8
commit abfa73193f
+11
View File
@@ -103,6 +103,17 @@ typedef enum {
} pwm_mode_t;
#endif
#ifdef MODULE_ARDUINO
/**
* @brief RIOT GPIO mapping between Arduino pin, PWM device and channel
*/
typedef struct {
int pin; /**< Arduino pin number */
int dev; /**< PWM device index of pin */
int chan; /**< PWM channel index */
} arduino_pwm_t;
#endif
/**
* @brief Initialize a PWM device
*