08/18/2014 3:20 PM
post111477
|
Hello,
I'm trying to figure out how to change a pin mode correctly. I tried these three methods but none works.
1. Change code in init_pinmux.c (included in the BSP) adding some lines like out32(conf_gpmc_ad6 , (MODE(7)));
2. mmap_device_io of the memory where's stored the conf register.
3. mmap_device_memory of the same memory region above.
In points 2 and 3 I'm then using in32 and out32 methods to read and write values, but they seem unfunctional.
Am I missing smth?
Thanks everybody!
|
|
|