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
f4fa0af8
Commit
f4fa0af8
authored
3 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
change(pycardium): Increase systick interval to 1 second
parent
c9a840d2
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
+7
-3
7 additions, 3 deletions
pycardium/mphalport.c
with
7 additions
and
3 deletions
pycardium/mphalport.c
+
7
−
3
View file @
f4fa0af8
...
...
@@ -20,9 +20,13 @@
#include
<stdio.h>
#include
<string.h>
// Smallest interval which can be reached exactly
// * 8 to allow up to 100 ms epic calls
#define SYSTICK_INTERVAL_US (15625ULL * 8ULL)
/* Smallest integer us interval which can be reached exactly due
* to the 32768 Hz systick frequency */
#define SYSTICK_INTERVAL_US_MIN 15625
/* Target systick interval is 1 second */
#define SYSTICK_INTERVAL_US \
(SYSTICK_INTERVAL_US_MIN * (1000000 / SYSTICK_INTERVAL_US_MIN))
/*
* Copied from core_cm4.h and modified to select the
...
...
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