Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nucleo-64
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
Model registry
Operate
Environments
Monitor
Incidents
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
Per Lindgren
nucleo-64
Commits
c5252eee
Commit
c5252eee
authored
8 years ago
by
Jorge Aparicio
Browse files
Options
Downloads
Patches
Plain Diff
faster digital output switching when using the PWM
parent
254c5df9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pwm.rs
+14
-14
14 additions, 14 deletions
src/pwm.rs
with
14 additions
and
14 deletions
src/pwm.rs
+
14
−
14
View file @
c5252eee
...
@@ -80,19 +80,19 @@ impl<'a> Pwm<'a, TIM1> {
...
@@ -80,19 +80,19 @@ impl<'a> Pwm<'a, TIM1> {
// CH4 = PA11 = alternate push-pull
// CH4 = PA11 = alternate push-pull
gpioa
.crh
.modify
(|
_
,
w
|
{
gpioa
.crh
.modify
(|
_
,
w
|
{
w
.mode8
()
w
.mode8
()
.output
()
.output
50
()
.cnf8
()
.cnf8
()
.alt_push
()
.alt_push
()
.mode9
()
.mode9
()
.output
()
.output
50
()
.cnf9
()
.cnf9
()
.alt_push
()
.alt_push
()
.mode10
()
.mode10
()
.output
()
.output
50
()
.cnf10
()
.cnf10
()
.alt_push
()
.alt_push
()
.mode11
()
.mode11
()
.output
()
.output
50
()
.cnf11
()
.cnf11
()
.alt_push
()
.alt_push
()
});
});
...
@@ -263,19 +263,19 @@ where
...
@@ -263,19 +263,19 @@ where
// CH4 = PA3 = alternate push-pull
// CH4 = PA3 = alternate push-pull
gpio
.crl
.modify
(|
_
,
w
|
{
gpio
.crl
.modify
(|
_
,
w
|
{
w
.mode0
()
w
.mode0
()
.output
()
.output
50
()
.cnf0
()
.cnf0
()
.alt_push
()
.alt_push
()
.mode1
()
.mode1
()
.output
()
.output
50
()
.cnf1
()
.cnf1
()
.alt_push
()
.alt_push
()
.mode2
()
.mode2
()
.output
()
.output
50
()
.cnf2
()
.cnf2
()
.alt_push
()
.alt_push
()
.mode3
()
.mode3
()
.output
()
.output
50
()
.cnf3
()
.cnf3
()
.alt_push
()
.alt_push
()
});
});
...
@@ -290,11 +290,11 @@ where
...
@@ -290,11 +290,11 @@ where
// CH4 = PB1 = alternate push-pull (TODO)
// CH4 = PB1 = alternate push-pull (TODO)
gpio
.crl
.modify
(|
_
,
w
|
{
gpio
.crl
.modify
(|
_
,
w
|
{
w
.mode6
()
w
.mode6
()
.output
()
.output
50
()
.cnf6
()
.cnf6
()
.alt_push
()
.alt_push
()
.mode7
()
.mode7
()
.output
()
.output
50
()
.cnf7
()
.cnf7
()
.alt_push
()
.alt_push
()
});
});
...
@@ -307,22 +307,22 @@ where
...
@@ -307,22 +307,22 @@ where
// CH4 = PB9 = alternate push-pull
// CH4 = PB9 = alternate push-pull
gpio
.crl
.modify
(|
_
,
w
|
{
gpio
.crl
.modify
(|
_
,
w
|
{
w
.mode6
()
w
.mode6
()
.output
()
.output
50
()
.cnf6
()
.cnf6
()
.alt_push
()
.alt_push
()
.mode7
()
.mode7
()
.output
()
.output
50
()
.cnf7
()
.cnf7
()
.alt_push
()
.alt_push
()
});
});
gpio
.crh
.modify
(|
_
,
w
|
{
gpio
.crh
.modify
(|
_
,
w
|
{
w
.mode8
()
w
.mode8
()
.output
()
.output
50
()
.cnf8
()
.cnf8
()
.alt_push
()
.alt_push
()
.mode9
()
.mode9
()
.output
()
.output
50
()
.cnf9
()
.cnf9
()
.alt_push
()
.alt_push
()
});
});
...
...
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