1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 14:03:55 +01:00

drivers/periph_pwm: define mapping struct for arduino pins

This commit is contained in:
Alexandre Abadie 2019-10-21 15:49:57 +02:00
parent 384b1aeec8
commit abfa73193f
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

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
*