MentOS
0.8.0
The Mentoring Operating System
|
Memory Mapped IO functions. More...
Go to the source code of this file.
Functions | |
uint8_t | in_memb (uint32_t addr) |
Reads a 8-bit value from the given address. More... | |
uint16_t | in_mems (uint32_t addr) |
Reads a 16-bit value from the given address. More... | |
uint32_t | in_meml (uint32_t addr) |
Reads a 32-bit value from the given address. More... | |
void | out_memb (uint32_t addr, uint8_t value) |
Writes a 8-bit value at the given address. More... | |
void | out_mems (uint32_t addr, uint16_t value) |
Writes a 16-bit value at the given address. More... | |
void | out_meml (uint32_t addr, uint32_t value) |
Writes a 32-bit value at the given address. More... | |
Memory Mapped IO functions.
Reads a 8-bit value from the given address.
addr | the address we want to read from. |
Reads a 32-bit value from the given address.
addr | the address we want to read from. |
Reads a 16-bit value from the given address.
addr | the address we want to read from. |
Writes a 8-bit value at the given address.
addr | the address we want to write to. |
value | the value we want to write. |
Writes a 32-bit value at the given address.
addr | the address we want to write to. |
value | the value we want to write. |