Log I2C error counts on a per slave and per error type basis and expose them via USB.

This commit is contained in:
László Monda
2018-01-05 03:23:48 +01:00
parent 33e501cd83
commit 6ad425cbf9
8 changed files with 101 additions and 1 deletions

View File

@@ -14,6 +14,7 @@
#include "usb_commands/usb_command_get_debug_buffer.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_get_slave_i2c_errors.h"
void UsbProtocolHandler(void)
{
@@ -65,6 +66,9 @@ void UsbProtocolHandler(void)
case UsbCommandId_GetModuleProperty:
UsbCommand_GetModuleProperty();
break;
case UsbCommandId_GetSlaveI2cErrors:
UsbCommand_GetSlaveI2cErrors();
break;
default:
SetUsbTxBufferUint8(0, UsbStatusCode_InvalidCommand);
break;