-
Notifications
You must be signed in to change notification settings - Fork 0
C_LIB_DOCUM
Pavel A edited this page Nov 21, 2016
·
3 revisions
TODO
Please see libdevmem.h
The library provides read and write methods by 32, 16, 8 bits.
Implemented by mapping /dev/mem, exactly like in the devmem utility but instead of physical addresses it deals with offsets relative to the physical base address.
The physical base address is defined in an environment variable. The name of the variable can be #defined at compile time.
The library is just one .c file that should be compiled with the user program. It can be built as a real static or shared library, if wanted.
The config helper script libdevmem-config
provides make options for compiling and linking with the library.
The example consists of files ex1.c, ex1.mk in the source directory.