aboutsummaryrefslogtreecommitdiffstats
path: root/boards/base/RaspberryPi/FreeRTOS/mmio.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-11-03 10:51:23 +1000
committerinmarket <andrewh@inmarket.com.au>2018-11-03 10:51:23 +1000
commit7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d (patch)
tree95cf152ef65ff19c7b2515b427bbe86b92b611d0 /boards/base/RaspberryPi/FreeRTOS/mmio.h
parent8bd70d953bcd3e32ceb4e45a4e561c973726280a (diff)
downloaduGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.tar.gz
uGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.tar.bz2
uGFX-7c5a6c928fa7129cf754c9c73c5c7ae39372ba9d.zip
For all source files update integer types to the new gI8 etc type names
Diffstat (limited to 'boards/base/RaspberryPi/FreeRTOS/mmio.h')
-rw-r--r--boards/base/RaspberryPi/FreeRTOS/mmio.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/boards/base/RaspberryPi/FreeRTOS/mmio.h b/boards/base/RaspberryPi/FreeRTOS/mmio.h
index 1a7fb5c2..8bf3a363 100644
--- a/boards/base/RaspberryPi/FreeRTOS/mmio.h
+++ b/boards/base/RaspberryPi/FreeRTOS/mmio.h
@@ -6,16 +6,16 @@
#include <stdint.h>
// write to MMIO register
-static GFXINLINE void mmio_write(uint32_t reg, uint32_t data) {
- uint32_t *ptr = (uint32_t*)reg;
+static GFXINLINE void mmio_write(gU32 reg, gU32 data) {
+ gU32 *ptr = (gU32*)reg;
asm volatile("str %[data], [%[reg]]"
: : [reg]"r"(ptr), [data]"r"(data));
}
// read from MMIO register
-static GFXINLINE uint32_t mmio_read(uint32_t reg) {
- uint32_t *ptr = (uint32_t*)reg;
- uint32_t data;
+static GFXINLINE gU32 mmio_read(gU32 reg) {
+ gU32 *ptr = (gU32*)reg;
+ gU32 data;
asm volatile("ldr %[data], [%[reg]]"
: [data]"=r"(data) : [reg]"r"(ptr));
return data;