Extract UsbCommand_SetTestLed() into its own file.
This commit is contained in:
11
right/src/usb_commands/usb_command_set_test_led.c
Normal file
11
right/src/usb_commands/usb_command_set_test_led.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "usb_commands/usb_command_set_test_led.h"
|
||||
#include "usb_protocol_handler.h"
|
||||
#include "peripherals/test_led.h"
|
||||
#include "slave_drivers/uhk_module_driver.h"
|
||||
|
||||
void UsbCommand_SetTestLed(void)
|
||||
{
|
||||
uint8_t ledState = GenericHidInBuffer[1];
|
||||
TEST_LED_SET(ledState);
|
||||
UhkModuleStates[UhkModuleDriverId_LeftKeyboardHalf].sourceVars.isTestLedOn = ledState;
|
||||
}
|
||||
8
right/src/usb_commands/usb_command_set_test_led.h
Normal file
8
right/src/usb_commands/usb_command_set_test_led.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef __USB_COMMAND_SET_TEST_LED_H__
|
||||
#define __USB_COMMAND_SET_TEST_LED_H__
|
||||
|
||||
// Functions:
|
||||
|
||||
void UsbCommand_SetTestLed(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user