aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/util.h
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2010-08-05 21:47:12 -0400
committerbnewbold <bnewbold@robocracy.org>2010-08-05 21:47:22 -0400
commit0f55cc0d89dc018aa1a2e7ad1c926889f98ec26d (patch)
treeda21b7edba9b779591b56b6c08f0012ed2cbe31b /libmaple/util.h
parentccd9833f264d6e20a9f2c81baebe162f07eec996 (diff)
downloadlibrambutan-0f55cc0d89dc018aa1a2e7ad1c926889f98ec26d.tar.gz
librambutan-0f55cc0d89dc018aa1a2e7ad1c926889f98ec26d.zip
partial progress on FSMC for SRAM
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))