Well not really to be honest but Thanks anyway.
I managed to push my code a little bit forward but again I’m stuck:
[color=green]//Two variables for storing the port of the
//PORTA which is the GPIO I’m interested in (8bit)
[color=green]//PACR which is the configuration register for PORTA(16bit)
[color=green]//I map them to the address I found in the sh7760 specification
//(but I’m nor sure whether the values were not change by the BSP
//though it seams that the PACR address is OK )
[color=blue]PORTAtemp = mmap_device_io(0x8 , 0xFE400080);
PACRtemp = mmap_device_io(0x10 , 0xFE400000);
[color=green]//I’m setting some pins to the outputs
[color=blue]out16( PACRtemp , 0x5550);
[color=green]//I’m writing FF to the port
[color=blue]out8( PORTAtemp, 0xFF);
Results are following:
If I configure it as an output I got all 0V on the port.
If I configure it as a Input Pull-up ON its all about 3.3V
So It seams to work.
But If I write to a port using [color=blue]out8(PORTAtemp, 0xFF);
the is no results nothing happens.
Don’t know what could be wrong
Any ideas anyone?