Make UsbProtocolHandler() invoke UsbCommand_SetI2cBaudRate() when requested.
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
#include "usb_commands/usb_command_jump_to_module_bootloader.h"
|
#include "usb_commands/usb_command_jump_to_module_bootloader.h"
|
||||||
#include "usb_commands/usb_command_send_kboot_command_to_module.h"
|
#include "usb_commands/usb_command_send_kboot_command_to_module.h"
|
||||||
#include "usb_commands/usb_command_get_slave_i2c_errors.h"
|
#include "usb_commands/usb_command_get_slave_i2c_errors.h"
|
||||||
|
#include "usb_commands/usb_command_set_i2c_baud_rate.h"
|
||||||
|
|
||||||
void UsbProtocolHandler(void)
|
void UsbProtocolHandler(void)
|
||||||
{
|
{
|
||||||
@@ -69,6 +70,9 @@ void UsbProtocolHandler(void)
|
|||||||
case UsbCommandId_GetSlaveI2cErrors:
|
case UsbCommandId_GetSlaveI2cErrors:
|
||||||
UsbCommand_GetSlaveI2cErrors();
|
UsbCommand_GetSlaveI2cErrors();
|
||||||
break;
|
break;
|
||||||
|
case UsbCommandId_SetI2cBaudRate:
|
||||||
|
UsbCommand_SetI2cBaudRate();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
SetUsbTxBufferUint8(0, UsbStatusCode_InvalidCommand);
|
SetUsbTxBufferUint8(0, UsbStatusCode_InvalidCommand);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user