Extract UsbCommand_SendKbootCommand()
This commit is contained in:
9
right/src/usb_commands/usb_command_send_kboot_command.c
Normal file
9
right/src/usb_commands/usb_command_send_kboot_command.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "usb_protocol_handler.h"
|
||||
#include "slave_drivers/kboot_driver.h"
|
||||
|
||||
void UsbCommand_SendKbootCommand(void)
|
||||
{
|
||||
KbootDriverState.phase = 0;
|
||||
KbootDriverState.i2cAddress = GenericHidInBuffer[2];
|
||||
KbootDriverState.commandType = GenericHidInBuffer[1]; // Command should be set last.
|
||||
}
|
||||
8
right/src/usb_commands/usb_command_send_kboot_command.h
Normal file
8
right/src/usb_commands/usb_command_send_kboot_command.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef __USB_COMMAND_SEND_KBOOT_COMMAND_H__
|
||||
#define __USB_COMMAND_SEND_KBOOT_COMMAND_H__
|
||||
|
||||
// Functions:
|
||||
|
||||
void UsbCommand_SendKbootCommand(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user