armOS  0.1.0
Minimal ARM Operating System for the Raspberry Pi - Documentation generated for Pi 4.
mmio.h
Go to the documentation of this file.
1 
8 #include <stdint.h>
9 
10 #ifndef MMIO_H
11 #define MMIO_H
12 
13 #ifdef AARCH_32
14 
21 void mmio_write(uint32_t reg, uint32_t data);
29 uint32_t mmio_read(uint32_t reg);
30 
31 #elif AARCH_64
32 
39 void mmio_write(uint64_t reg, uint32_t data);
47 uint32_t mmio_read(uint64_t reg);
48 #endif
49 
55 void delay(int32_t count);
56 
57 #endif
delay
void delay(int32_t count)
Definition: mmio.c:43
mmio_read
uint32_t mmio_read(uint64_t reg)
Definition: mmio.c:34
mmio_write
void mmio_write(uint64_t reg, uint32_t data)
Definition: mmio.c:19