Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
a75847ca
Commit
a75847ca
authored
9 years ago
by
Hauke Petersen
Browse files
Options
Downloads
Patches
Plain Diff
baords/samr21-xpro: added third channel for PWM1
parent
c82dda9b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
boards/samr21-xpro/include/periph_conf.h
+8
-6
8 additions, 6 deletions
boards/samr21-xpro/include/periph_conf.h
with
8 additions
and
6 deletions
boards/samr21-xpro/include/periph_conf.h
+
8
−
6
View file @
a75847ca
...
@@ -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
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment