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
f37825a1
Commit
f37825a1
authored
6 years ago
by
Semjon Kerner
Browse files
Options
Downloads
Patches
Plain Diff
boards/calliope-mini: configure pwm
parent
ad993263
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
boards/calliope-mini/Makefile.features
+1
-0
1 addition, 0 deletions
boards/calliope-mini/Makefile.features
boards/calliope-mini/include/periph_conf.h
+9
-7
9 additions, 7 deletions
boards/calliope-mini/include/periph_conf.h
with
10 additions
and
7 deletions
boards/calliope-mini/Makefile.features
+
1
−
0
View file @
f37825a1
...
...
@@ -4,6 +4,7 @@ FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED
+=
periph_rtt
FEATURES_PROVIDED
+=
periph_timer
FEATURES_PROVIDED
+=
periph_uart
FEATURES_PROVIDED
+=
periph_pwm
# Various other features (if any)
FEATURES_PROVIDED
+=
radio_nrfmin
...
...
This diff is collapsed.
Click to expand it.
boards/calliope-mini/include/periph_conf.h
+
9
−
7
View file @
f37825a1
...
...
@@ -57,18 +57,11 @@ static const timer_conf_t timer_config[] = {
.
channels
=
3
,
.
bitmode
=
TIMER_BITMODE_BITMODE_16Bit
,
.
irqn
=
TIMER1_IRQn
},
{
.
dev
=
NRF_TIMER2
,
.
channels
=
3
,
.
bitmode
=
TIMER_BITMODE_BITMODE_16Bit
,
.
irqn
=
TIMER2_IRQn
}
};
#define TIMER_0_ISR isr_timer0
#define TIMER_1_ISR isr_timer1
#define TIMER_2_ISR isr_timer2
#define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0]))
/** @} */
...
...
@@ -129,6 +122,15 @@ static const i2c_conf_t i2c_config[] = {
#define RADIO_IRQ_PRIO 1
/** @} */
/**
* @name PWM configuration
* @{
*/
#define PWM_NUMOF (1U)
#define PWM_TIMER NRF_TIMER2
#define PWM_PIN (0U)
/** @} */
#ifdef __cplusplus
}
#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