diff options
author | bnewbold <bnewbold@robocracy.org> | 2010-08-05 21:47:12 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-08-05 21:47:22 -0400 |
commit | 0f55cc0d89dc018aa1a2e7ad1c926889f98ec26d (patch) | |
tree | da21b7edba9b779591b56b6c08f0012ed2cbe31b /libmaple/util.h | |
parent | ccd9833f264d6e20a9f2c81baebe162f07eec996 (diff) | |
download | librambutan-0f55cc0d89dc018aa1a2e7ad1c926889f98ec26d.tar.gz librambutan-0f55cc0d89dc018aa1a2e7ad1c926889f98ec26d.zip |
partial progress on FSMC for SRAM
Diffstat (limited to 'libmaple/util.h')
-rw-r--r-- | libmaple/util.h | 1 |
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)) |