Remove the unused bootloader_command_init(), CommandInterface and g_commandInterface.
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user