Hello,
we changed notation for DIO, refer DeviceDriverDoc, because newer boards may have much more IOs than 32. You can still use "dword" notation but with suffix (UseAsIOA (port 0...3), UseAsIOB (port 4...7), ...)
1) Which exact pins are corresponding to GPIO port 0 on A9r2: pins from 3 to 10 of the 66 pins feature connector ?
Pin 3...7 belongs to port0
Pin 8...10 belongs to port1
2) We try to configure 4 pins In and 4 pins Out altenatively, so on WCE register we set
reg open \drivers\builtin\digitalio
reg set value UseAsIO hex 0xf8,0x07,<port2>,...,port<n>
reg set value DataDir hex 0xA8,0x02,<port2>,...,port<n>
reg save
REM
Hope this helps.
PS: switch off unused SPIs because they may use the same pins:
reg open \drivers\builtin\armStoneA9R2\spi2
reg set value Flags dword 4
reg open \drivers\builtin\armStoneA9R2\spi3
reg set value Flags dword 4
reg save
REM