aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmaple/util.h')
-rw-r--r--libmaple/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmaple/util.h b/libmaple/util.h
index a18fa84..1aae7bd 100644
--- a/libmaple/util.h
+++ b/libmaple/util.h
@@ -48,6 +48,7 @@
#define BITBAND_PERI_BASE 0x42000000
#define BITBAND_PERI(a,b) ((BITBAND_PERI_BASE + (a-BITBAND_PERI_REF)*32 + (b*4))) // Convert PERI address
+
#define COUNTFLAG *((volatile unsigned char*) (BITBAND_PERI(SYSTICK_CSR,2)))
#define REG_SET(reg, val) (*(volatile uint32*)(reg) = (val))