Expose variables via USB
This commit is contained in:
21
right/src/usb_commands/usb_command_set_variable.c
Normal file
21
right/src/usb_commands/usb_command_set_variable.c
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "usb_protocol_handler.h"
|
||||
#include "usb_commands/usb_command_set_variable.h"
|
||||
#include "key_matrix.h"
|
||||
|
||||
void UsbCommand_SetVariable(void)
|
||||
{
|
||||
usb_variable_id_t variableId = GetUsbRxBufferUint8(1);
|
||||
|
||||
switch (variableId) {
|
||||
case UsbVariable_TestMode:
|
||||
break;
|
||||
case UsbVariable_TestUsbStack:
|
||||
break;
|
||||
case UsbVariable_DebounceTimePress:
|
||||
DebounceTimePress = GetUsbRxBufferUint8(2);
|
||||
break;
|
||||
case UsbVariable_DebounceTimeRelease:
|
||||
DebounceTimeRelease = GetUsbRxBufferUint8(2);
|
||||
break;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user