mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/same54-xpro: fix style of PWM config
This commit is contained in:
parent
58e37a7c58
commit
90b0607f18
@ -189,25 +189,25 @@ static const uart_conf_t uart_config[] = {
|
|||||||
* @name PWM configuration
|
* @name PWM configuration
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#define PWM_0_EN 1
|
|
||||||
|
|
||||||
#if PWM_0_EN
|
|
||||||
/* PWM0 channels */
|
/* PWM0 channels */
|
||||||
static const pwm_conf_chan_t pwm_chan0_config[] = {
|
static const pwm_conf_chan_t pwm_chan0_config[] = {
|
||||||
/* GPIO pin, MUX value, TCC channel */
|
/* GPIO pin, MUX value, TCC channel */
|
||||||
{ GPIO_PIN(PC, 18), GPIO_MUX_F, 2 },
|
{
|
||||||
|
.pin = GPIO_PIN(PC, 18),
|
||||||
|
.mux = GPIO_MUX_F,
|
||||||
|
.chan = 2
|
||||||
|
},
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
||||||
/* PWM device configuration */
|
/* PWM device configuration */
|
||||||
static const pwm_conf_t pwm_config[] = {
|
static const pwm_conf_t pwm_config[] = {
|
||||||
#if PWM_0_EN
|
{
|
||||||
{ .tim = TCC_CONFIG(TCC0),
|
.tim = TCC_CONFIG(TCC0),
|
||||||
.chan = pwm_chan0_config,
|
.chan = pwm_chan0_config,
|
||||||
.chan_numof = ARRAY_SIZE(pwm_chan0_config),
|
.chan_numof = ARRAY_SIZE(pwm_chan0_config),
|
||||||
.gclk_src = SAM0_GCLK_48MHZ,
|
.gclk_src = SAM0_GCLK_48MHZ,
|
||||||
},
|
},
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* number of devices that are actually defined */
|
/* number of devices that are actually defined */
|
||||||
|
Loading…
Reference in New Issue
Block a user