Skip to content
Snippets Groups Projects
Commit 13fcefb6 authored by Hauke Petersen's avatar Hauke Petersen
Browse files

s cpu: moved pwm_conf_[chan_]t to periph_cpu.h

parent 83b322f9
No related branches found
No related tags found
No related merge requests found
...@@ -79,6 +79,23 @@ typedef enum { ...@@ -79,6 +79,23 @@ typedef enum {
GPIO_MUX_H = 0x7, /**< select peripheral function H */ GPIO_MUX_H = 0x7, /**< select peripheral function H */
} gpio_mux_t; } gpio_mux_t;
/**
* @brief PWM channel configuration data structure
*/
typedef struct {
gpio_t pin; /**< GPIO pin */
gpio_mux_t mux; /**< pin function multiplex value */
uint8_t chan; /**< TCC channel to use */
} pwm_conf_chan_t;
/**
* @brief PWM device configuration data structure
*/
typedef struct {
Tcc *dev; /*< TCC device to use */
pwm_conf_chan_t chan[2]; /**< channel configuration */
} pwm_conf_t;
/** /**
* @brief UART device configuration * @brief UART device configuration
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment