diff options
Diffstat (limited to 'src/lib/systick.h')
-rw-r--r-- | src/lib/systick.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/systick.h b/src/lib/systick.h index 3d846ef..61789c4 100644 --- a/src/lib/systick.h +++ b/src/lib/systick.h @@ -51,7 +51,7 @@ extern "C"{ void systick_init(void); static inline uint32_t systick_get_count(void) { - return (uint32_t)SYSTICK_CNT; + return (uint32_t)*(volatile uint32*)SYSTICK_CNT; } #ifdef __cplusplus |