summaryrefslogtreecommitdiff
path: root/board/zinger/runtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/zinger/runtime.c')
-rw-r--r--board/zinger/runtime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/zinger/runtime.c b/board/zinger/runtime.c
index 0b6f1995f5..9d27181032 100644
--- a/board/zinger/runtime.c
+++ b/board/zinger/runtime.c
@@ -4,6 +4,7 @@
*/
/* tiny substitute of the runtime layer */
+#include "atomic.h"
#include "chip/stm32/clock-f.h"
#include "clock.h"
#include "common.h"
@@ -16,7 +17,7 @@
#include "util.h"
volatile uint32_t last_event;
-uint32_t sleep_mask;
+atomic_t sleep_mask;
/* High word of the 64-bit timestamp counter */
static volatile uint32_t clksrc_high;