#include "config.h"
#endif
-#include "armv4_5.h"
+#include "arm.h"
#include "etm_dummy.h"
static const struct command_registration etm_dummy_config_command_handlers[] = {
{
.name = "config",
- .handler = &handle_etm_dummy_config_command,
+ .handler = handle_etm_dummy_config_command,
.mode = COMMAND_CONFIG,
- .usage = "<target>",
+ .usage = "target",
},
COMMAND_REGISTRATION_DONE
};
COMMAND_REGISTRATION_DONE
};
-static int etm_dummy_register_commands(struct command_context *cmd_ctx)
-{
- return register_commands(cmd_ctx, NULL, etm_dummy_command_handlers);
-}
-
static int etm_dummy_init(struct etm_context *etm_ctx)
{
return ERROR_OK;
struct etm_capture_driver etm_dummy_capture_driver =
{
.name = "dummy",
- .register_commands = etm_dummy_register_commands,
+ .commands = etm_dummy_command_handlers,
.init = etm_dummy_init,
.status = etm_dummy_status,
.start_capture = etm_dummy_start_capture,