Iván Cayón(deleted)
06/11/2013 6:39 AM
post102142
|
Hi again !
I'm trying to develop a simple driver for managing GPIO in Intel Topcliff. I can attach PCI GPIO subsystem, and it
suppose that now I can map mem address...so I can read and write. The first approach is to read the input. I have put a
pin to ground, so it's suppose I should read FFE, but I always read 0xFFF. It's like there was someting wrong in the
memory mapping or so.
Once I attach I have this information
---
Aperture 1: Base 0xd0157000 Length 64 bytes Type MEM
---
So I mmap_device_memory to a volatile uint32_t pointer. At this point If I do:
data = *((volatile uint32_t*)((uintptr_t)memMap+GPIO_PORT_INPUT));
I should get 0xffe, but got 0xfff
Did I miss something?
The port mode it's in input mode, irq disabled..
Thanks for your help !
|
|
|