---
 include/libopencm3/cm3/common.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/libopencm3/cm3/common.h b/include/libopencm3/cm3/common.h
index 279ef00..a7a8df8 100644
--- a/include/libopencm3/cm3/common.h
+++ b/include/libopencm3/cm3/common.h
@@ -54,10 +54,10 @@
 
 /* Generic bit-band I/O accessor functions */
 #define BBIO_SRAM(addr, bit) \
-       MMIO8(((addr) & 0x0FFFFF) * 32 + 0x22000000 + (bit) * 4)
+       MMIO32((((uint32_t)addr) & 0x0FFFFF) * 32 + 0x22000000 + (bit) * 4)
 
 #define BBIO_PERIPH(addr, bit) \
-       MMIO8(((addr) & 0x0FFFFF) * 32 + 0x42000000 + (bit) * 4)
+       MMIO32((((uint32_t)addr) & 0x0FFFFF) * 32 + 0x42000000 + (bit) * 4)
 
 /* Generic bit definition */
 #define BIT0  (1<<0)
-- 
1.8.4.5


------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
libopencm3-devel mailing list
libopencm3-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel

Reply via email to