from qn908x.c:1145
static const struct command_registration qn908x_exec_command_handlers[] = {
{
.name = "allow_brick",
.handler = qn908x_handle_allow_brick_command,
.mode = COMMAND_EXEC,
.help = "Allow writing images that disable SWD access in their "
"Code Read Protection (CRP) word. Warning: This can make your "
"chip inaccessible from OpenOCD or any other SWD debugger.",
.usage = "",
},
{
.name = "disable_wdog",
.handler = qn908x_handle_disable_wdog_command,
.mode = COMMAND_EXEC,
.help = "Disabled the watchdog (WDT).",
.usage = "",
},
{
.name = "mass_erase",
.handler = qn908x_handle_mass_erase_command,
.mode = COMMAND_EXEC,
.help = "Erase the whole flash chip.",
.usage = "[keep_lock]",
},
COMMAND_REGISTRATION_DONE
};