Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
firmware
Commits
08258739
Commit
08258739
authored
3 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
change(pycardium): Simplify systick setup a bit
parent
374ca0bb
No related branches found
No related tags found
1 merge request
!480
Pycardium: Use sleep API call while sleeping
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pycardium/mphalport.c
+1
-2
1 addition, 2 deletions
pycardium/mphalport.c
with
1 addition
and
2 deletions
pycardium/mphalport.c
+
1
−
2
View file @
08258739
...
...
@@ -23,7 +23,6 @@
// Smallest interval which can be reached exactly
// * 8 to allow up to 100 ms epic calls
#define SYSTICK_INTERVAL_US (15625ULL * 8ULL)
#define SYSTICK_FREQ_HZ (1000000 / SYSTICK_INTERVAL_US)
/*
* Copied from core_cm4.h and modified to select the
...
...
@@ -60,7 +59,7 @@ void pycardium_hal_init(void)
/*
* Configure SysTick timer for SYSTICK_INTERVAL_US period.
*/
systick_config
(
32768
/
SYSTICK_FREQ_HZ
);
systick_config
(
SYSTICK_INTERVAL_US
*
32768ULL
/
1000000
);
}
/******************************************************************************
...
...
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