mirror of
https://github.com/gosticks/RIOT.git
synced 2026-10-04 23:07:10 +00:00
drivers/periph_pwm: define mapping struct for arduino pins
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user