Commit 08258739 authored by schneider's avatar schneider
Browse files

change(pycardium): Simplify systick setup a bit

parent 374ca0bb
......@@ -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);
}
/******************************************************************************
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment