]> git.sur5r.net Git - openocd/commit
Clean up jtag command queue handling:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 2 Jun 2009 05:47:00 +0000 (05:47 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 2 Jun 2009 05:47:00 +0000 (05:47 +0000)
commit6ef5a622af24a3644c1ebd5cf690bd5c38e6d8a3
treea2e63f4e975e676f99efdcb4e477dbab9a442c89
parent76bd16e9e343b3ac10245a9b76c032b10596bd6d
Clean up jtag command queue handling:
- Rename last_command_pointer as next_command_pointer, because this variable
  stores the address where jtag_queue_command() will store a command pointer.
- Make that variable static, since it is only used internally in jtag.c.
- Remove superfluous accessor for that now-static variable.
- Deobfuscate use of variables in jtag_command_queue.
- Add jtag_command_queue_reset helper function.
- Use it in interface_jtag_execute_queue.

git-svn-id: svn://svn.berlios.de/openocd/trunk@1992 b42882b7-edfa-0310-969c-e2dbd0fdcd60
src/jtag/jtag.c