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

baords/samr21-xpro: added third channel for PWM1

parent c82dda9b
No related branches found
No related tags found
No related merge requests found
...@@ -122,7 +122,7 @@ static const uart_conf_t uart_config[] = { ...@@ -122,7 +122,7 @@ static const uart_conf_t uart_config[] = {
*/ */
#define PWM_0_EN 1 #define PWM_0_EN 1
#define PWM_1_EN 1 #define PWM_1_EN 1
#define PWM_MAX_CHANNELS 2 #define PWM_MAX_CHANNELS 3
/* for compatibility with test application */ /* for compatibility with test application */
#define PWM_0_CHANNELS PWM_MAX_CHANNELS #define PWM_0_CHANNELS PWM_MAX_CHANNELS
#define PWM_1_CHANNELS PWM_MAX_CHANNELS #define PWM_1_CHANNELS PWM_MAX_CHANNELS
...@@ -132,16 +132,18 @@ static const pwm_conf_t pwm_config[] = { ...@@ -132,16 +132,18 @@ static const pwm_conf_t pwm_config[] = {
#if PWM_0_EN #if PWM_0_EN
{TCC1, { {TCC1, {
/* GPIO pin, MUX value, TCC channel */ /* GPIO pin, MUX value, TCC channel */
{GPIO_PIN(PA, 6), GPIO_MUX_E, 0}, { GPIO_PIN(PA, 6), GPIO_MUX_E, 0 },
{GPIO_PIN(PA, 7), GPIO_MUX_E, 1} { GPIO_PIN(PA, 7), GPIO_MUX_E, 1 },
{ GPIO_UNDEF, (gpio_mux_t)0, 2 }
}}, }},
#endif #endif
#if PWM_1_EN #if PWM_1_EN
{TCC0, { {TCC0, {
/* GPIO pin, MUX value, TCC channel */ /* GPIO pin, MUX value, TCC channel */
{GPIO_PIN(PA, 18), GPIO_MUX_F, 2}, { GPIO_PIN(PA, 16), GPIO_MUX_F, 0 },
{GPIO_PIN(PA, 19), GPIO_MUX_F, 3} { GPIO_PIN(PA, 18), GPIO_MUX_F, 2 },
}}, { GPIO_PIN(PA, 19), GPIO_MUX_F, 3 }
}}
#endif #endif
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment