]> git.sur5r.net Git - openocd/commit
Cleanup and improve handle_wp_command and handle_rwp_command:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 13 Jun 2009 00:34:10 +0000 (00:34 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 13 Jun 2009 00:34:10 +0000 (00:34 +0000)
commitf7afcfe23fe6edba0ddc755db47a71855af047fa
tree262f06e2a7e8f62ba7656aa036c8e064996eebcc
parentd0a300e0a07bce4039eae1852a6fc28160d63a03
Cleanup and improve handle_wp_command and handle_rwp_command:
- Simplify argument parsing logic using switch statement.
- Use parse_u32 to ensure all values parse properly.
- Return syntax error when mode argument fails to parse.

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