Skip to content
Snippets Groups Projects
Commit f4fa0af8 authored by schneider's avatar schneider
Browse files

change(pycardium): Increase systick interval to 1 second

parent c9a840d2
No related branches found
No related tags found
1 merge request!480Pycardium: Use sleep API call while sleeping
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment