CRpi
A library for rpi with intefaces to: gpio, pwm, dma
|
Provides helper macros for address management. More...
#include <memoryManagement/addressing.h>
#include <CCRCodingUtils/include/errorManagement.h>
#include <unistd.h>
#include <fcntl.h>
#include <inttypes.h>
Functions | |
int | addrVirtToPhys (void *virtAddr, uintptr_t *physAddrRet) |
Gets the physical address corresponding to the provided virtual address. More... | |
Variables | |
uintptr_t | peripheralsBaseAddressPhys = PERIPHERAL_BASE_ADDR_PHYS_RPI2 |
Physical base address of the peripherals memory area. | |
Provides helper macros for address management.
see BCM 2835 pag 4 and following.
See also the doc at addressing.h for some infos
int addrVirtToPhys | ( | void * | virtAddr, |
uintptr_t * | physAddrRet | ||
) |
Gets the physical address corresponding to the provided virtual address.
virtAddr | The virtuall address to convert |
physAddrRet | The physical address is rturned here |