On Wed, May 25, 2011 at 3:59 PM, Tomek CEDRO <tomek.ce...@gmail.com> wrote: > On Wed, May 25, 2011 at 7:56 PM, Rodrigo Rosa <rodrigorosa...@gmail.com> > wrote: > > Use the MPSSE and ft2232_write() (I think there was something like > write_bytes_{high,low} that wrapped this MPSSE call into something > more user friendly). >
I did use ft2232_write() and ft2232_read(), and it works from the driver code... to try it out i modified an existing command: "runtest" and used it as an interface to the driver ("runtest 1" would read and "runtest 2" would write some data to the outputs.) what I would like to implement is a user command to run from the telnet interface to read and write to the io pins available on the ftdi chip while set to jtag mode. if the command were to be called "io": io read/write mask [data], then i would like to be able to the following from the telnet interface: io read mask the previous command would set the pins selected by "mask" to be inputs, read them, and print their value to the telnet interface. io write mask data the previous command would set the pins selected by "mask" to be outputs and write "data" to them. i did not find a way to add a custom command in an elegante way... > Best regards, > Tomek > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > thanks Tomek. -- Rodrigo. _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development