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:
parent
384b1aeec8
commit
abfa73193f
@ -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
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user