diff --git a/right/src/buspal/command.c b/right/src/buspal/command.c index d732bac..297e9ce 100644 --- a/right/src/buspal/command.c +++ b/right/src/buspal/command.c @@ -363,15 +363,6 @@ static status_t handle_data_write(bool *hasMoreData) return kStatus_Success; } -// See command.h for documentation on this function. -status_t bootloader_command_init() -{ - command_processor_data_t *data = g_commandInterface.stateData; - - data->state = kCommandState_CommandPhase; - return kStatus_Success; -} - // See command.h for documentation on this function. status_t bootloader_command_pump() { diff --git a/right/src/buspal/command.h b/right/src/buspal/command.h index 5417b83..e70dbc3 100644 --- a/right/src/buspal/command.h +++ b/right/src/buspal/command.h @@ -38,19 +38,8 @@ typedef struct CommandProcessorData { const command_handler_entry_t *handlerEntry; // Pointer to handler table entry for packet in process } command_processor_data_t; -// Interface to command processor operations. -typedef struct CommandInterface { - command_processor_data_t *stateData; -} command_interface_t; - -// Default command interface. -extern command_interface_t g_commandInterface; - void handleUsbBusPalCommand(); -// Initialize the command processor component. -status_t bootloader_command_init(void); - // Pump the command state machine. Executes one command or data phase transaction. status_t bootloader_command_pump(void);