Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
e7020e_2021
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Josef Utbult
e7020e_2021
Commits
eda697a0
Commit
eda697a0
authored
4 years ago
by
Josef Utbult
Browse files
Options
Downloads
Patches
Plain Diff
bare6_3
parent
6b6ae4a0
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
examples/rtic_bare6.rs
+8
-8
8 additions, 8 deletions
examples/rtic_bare6.rs
with
8 additions
and
8 deletions
examples/rtic_bare6.rs
+
8
−
8
View file @
eda697a0
...
...
@@ -18,7 +18,7 @@ use stm32f4xx_hal::{
stm32
::{
self
,
GPIOC
,
RCC
},
};
const
OFFSET
:
u32
=
8
_000_000
;
const
OFFSET
:
u32
=
32
_000_000
;
#[rtic::app(device
=
stm32f4xx_hal::stm32,
monotonic
=
rtic::cyccnt::CYCCNT,
peripherals
=
true
)]
const
APP
:
()
=
{
...
...
@@ -55,14 +55,14 @@ const APP: () = {
let
rcc
=
device
.RCC
.constrain
();
let
_clocks
=
rcc
.cfgr
.freeze
();
//
let _clocks = rcc.cfgr.freeze();
// Set up the system clock. 48 MHz?
//
let _clocks = rcc
//
.cfgr
//
.sysclk(48.mhz())
//
.pclk1(24.mhz())
//
.freeze();
let
_clocks
=
rcc
.cfgr
.sysclk
(
48
.mhz
())
.pclk1
(
24
.mhz
())
.freeze
();
// let _clocks = rcc
// .cfgr
...
...
@@ -269,7 +269,7 @@ fn clock_out(rcc: &RCC, gpioc: &GPIOC) {
//`
// What is the frequency of blinking?
//
//
** your answer here **
//
Around 4Hz
//
// Now change the constant `OFFSET` so you get the same blinking frequency as in 1.
// Test and validate that you got the desired behavior.
...
...
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