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
39bff5dc
Commit
39bff5dc
authored
9 years ago
by
Hauke Petersen
Browse files
Options
Downloads
Patches
Plain Diff
boards/arduino-due: adjusted timer configuration
parent
af5ba0b5
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
+10
-25
10 additions, 25 deletions
boards/arduino-due/include/periph_conf.h
with
10 additions
and
25 deletions
boards/arduino-due/include/periph_conf.h
+
10
−
25
View file @
39bff5dc
...
...
@@ -38,31 +38,16 @@ extern "C" {
* @name Timer peripheral configuration
* @{
*/
#define TIMER_NUMOF (3U)
#define TIMER_0_EN 1
#define TIMER_1_EN 1
#define TIMER_2_EN 1
/* Timer 0 configuration */
#define TIMER_0_DEV TC0
#define TIMER_0_CHANNELS 6
#define TIMER_0_MAX_VALUE (0xffffffff)
#define TIMER_0_ISR1 isr_tc0
#define TIMER_0_ISR2 isr_tc1
/* Timer 1 configuration */
#define TIMER_1_DEV TC1
#define TIMER_1_CHANNELS 6
#define TIMER_1_MAX_VALUE (0xffffffff)
#define TIMER_1_ISR1 isr_tc3
#define TIMER_1_ISR2 isr_tc4
/* Timer 2 configuration */
#define TIMER_2_DEV TC2
#define TIMER_2_CHANNELS 6
#define TIMER_2_MAX_VALUE (0xffffffff)
#define TIMER_2_ISR1 isr_tc6
#define TIMER_2_ISR2 isr_tc7
static
const
timer_conf_t
timer_config
[]
=
{
/* dev, channel 0 ID */
{
TC0
,
ID_TC0
},
{
TC1
,
ID_TC3
},
};
#define TIMER_0_ISR isr_tc0
#define TIMER_1_ISR isr_tc3
#define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0]))
/** @} */
/**
...
...
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