]> git.sur5r.net Git - openocd/commit
add handle_command_parse_bool command helper
authorZachary T Welch <zw@superlucidity.net>
Wed, 18 Nov 2009 14:58:27 +0000 (06:58 -0800)
committerZachary T Welch <zw@superlucidity.net>
Wed, 18 Nov 2009 23:51:07 +0000 (15:51 -0800)
commit7e4adfe1c53aa18d4feba1e58ceb5c5aaa470775
treeb6e359af900dc57c08f10fa8c7ab535a40e35379
parent410fab9ea8c6632da2e4967d960f66eecc7821ec
add handle_command_parse_bool command helper

Rewrite arm11_handle_bool to provide a generic on/off command helper.

Refactors COMMAND_PARSE_BOOL to use new command_parse_bool helper,
which gets reused by the new command_parse_bool_any helper.
This later helper is called by the new command helper function to
accepts any on/off, enable/disable, true/false, yes/no, or 0/1 parameter.
src/helper/command.c
src/helper/command.h
src/target/arm11.c