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
08f35009
Commit
08f35009
authored
8 years ago
by
Hauke Petersen
Browse files
Options
Downloads
Patches
Plain Diff
boards/arduino-due: adaped PWM configuration
parent
adfd201a
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/arduino-due/include/periph_conf.h
+9
-25
9 additions, 25 deletions
boards/arduino-due/include/periph_conf.h
with
9 additions
and
25 deletions
boards/arduino-due/include/periph_conf.h
+
9
−
25
View file @
08f35009
...
...
@@ -112,34 +112,18 @@ static const uart_conf_t uart_config[] = {
/** @} */
/**
* @
name
PWM configuration
* @
brief
PWM configuration
* @{
*/
static
const
pwm_chan_conf_t
pwm_chan
[]
=
{
{
.
pin
=
GPIO_PIN
(
PC
,
21
),
.
hwchan
=
4
,
},
{
.
pin
=
GPIO_PIN
(
PC
,
22
),
.
hwchan
=
5
,
},
{
.
pin
=
GPIO_PIN
(
PC
,
23
),
.
hwchan
=
6
,
},
{
.
pin
=
GPIO_PIN
(
PC
,
24
),
.
hwchan
=
7
,
}
};
#define PWM_NUMOF (1U)
#define PWM_0_EN (1)
#define PWM_MAX_VALUE (0xffff)
#define PWM_MAX_CHANNELS (4U)
/* PWM_0 configuration */
#define PWM_0_DEV PWM
#define PWM_0_PID ID_PWM
#define PWM_0_CHANNELS (4U)
#define PWM_0_DEV_CH0 (&(PWM_0_DEV->PWM_CH_NUM[4]))
#define PWM_0_ENA_CH0 PWM_ENA_CHID4
#define PWM_0_PORT_CH0 PIOC
#define PWM_0_PIN_CH0 PIO_PC21B_PWML4
#define PWM_0_DEV_CH1 (&(PWM_0_DEV->PWM_CH_NUM[5]))
#define PWM_0_ENA_CH1 PWM_ENA_CHID5
#define PWM_0_PORT_CH1 PIOC
#define PWM_0_PIN_CH1 PIO_PC22B_PWML5
#define PWM_0_DEV_CH2 (&(PWM_0_DEV->PWM_CH_NUM[6]))
#define PWM_0_ENA_CH2 PWM_ENA_CHID6
#define PWM_0_PORT_CH2 PIOC
#define PWM_0_PIN_CH2 PIO_PC23B_PWML6
#define PWM_0_DEV_CH3 (&(PWM_0_DEV->PWM_CH_NUM[7]))
#define PWM_0_ENA_CH3 PWM_ENA_CHID7
#define PWM_0_PORT_CH3 PIOC
#define PWM_0_PIN_CH3 PIO_PC24B_PWML7
#define PWM_CHAN_NUMOF (sizeof(pwm_chan) / sizeof(pwm_chan[0]))
/** @} */
#ifdef __cplusplus
...
...
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