CRpi
A library for rpi with intefaces to: gpio, pwm, dma
|
Helper functions to map and unmap physical memory regions. More...
#include <stdint.h>
#include <stdlib.h>
Go to the source code of this file.
Functions | |
void * | mapPhysMemArea (uintptr_t areaBaseAddrPhys, size_t size) |
Maps the specified physical memory area to a virtual memory area. More... | |
int | unmapPhysMemArea (void *areaBaseAddrVirt, size_t size) |
Unmaps a physical memory area mapped using mapPhysMemArea() More... | |
Helper functions to map and unmap physical memory regions.
void* mapPhysMemArea | ( | uintptr_t | areaBaseAddrPhys, |
size_t | size | ||
) |
Maps the specified physical memory area to a virtual memory area.
areaBaseAddrPhys | The physical base address of the area |
size | The size of the area to map |
int unmapPhysMemArea | ( | void * | areaBaseAddrVirt, |
size_t | size | ||
) |
Unmaps a physical memory area mapped using mapPhysMemArea()
areaBaseAddrVirt | The virtual base address of the peripheral |
size | The size of the mapped area |