Simplify and improve gw16012_handle_parport_command:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 12 Jun 2009 01:40:23 +0000 (01:40 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 12 Jun 2009 01:40:23 +0000 (01:40 +0000)
commitd5339d2eb49930a60bafc5908045303ee8ad3e00
tree64c77235fce7ef8bd669fdc8c4fa4fbef33ffb83
parentf218f36df5ad401837a5a74d755174b1dc9023fe
Simplify and improve gw16012_handle_parport_command:
- Show the port number to the user when asking for it or setting it.
- Print an error if the parport_port has already been set.
- Use parse_u16 helper to ensure the parport_port string parses correctly.

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