summaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
Diffstat (limited to 'platforms')
-rw-r--r--platforms/test/timer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/platforms/test/timer.c b/platforms/test/timer.c
index e0acd1b16d..320cc57782 100644
--- a/platforms/test/timer.c
+++ b/platforms/test/timer.c
@@ -15,8 +15,9 @@
*/
#include "timer.h"
+#include <stdatomic.h>
-static uint32_t current_time = 0;
+static atomic_uint_least32_t current_time = 0;
void timer_init(void) {
current_time = 0;