Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
card10
firmware
Commits
08258739
Commit
08258739
authored
Sep 15, 2021
by
schneider
Browse files
change(pycardium): Simplify systick setup a bit
parent
374ca0bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycardium/mphalport.c
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
);
}
/******************************************************************************
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment