[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] Reading and writing memory mapped registers
I have a fully functional microblaze-uclinux system including a user
peripheral with memory mapped registers.
Is the following code correct in order to read/write these registers?
int adr =0;
int size = 0;
volatile int *regfile = (int *) REGFILE_BASEADDR;
With this code I am getting ‘unstable’ results which differ by 1 bit
randomly at every access.
microblaze-uclinux mailing list
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/