Remove unneeded includes and comments from usb_protocol_handler.c

This commit is contained in:
László Monda
2017-11-05 18:10:35 +01:00
parent 45420a348b
commit 6dcfcca10f
2 changed files with 1 additions and 20 deletions

View File

@@ -1,20 +1,4 @@
#include "usb_protocol_handler.h"
#include "peripherals/test_led.h"
#include "i2c_addresses.h"
#include "peripherals/led_driver.h"
#include "peripherals/merge_sensor.h"
#include "config_parser/parse_config.h"
#include "config_parser/config_globals.h"
#include "led_pwm.h"
#include "slave_scheduler.h"
#include "slave_drivers/uhk_module_driver.h"
#include "slave_drivers/kboot_driver.h"
#include "bootloader/wormhole.h"
#include "peripherals/adc.h"
#include "eeprom.h"
#include "keymap.h"
#include "microseconds/microseconds_pit.c"
#include "i2c_watchdog.h"
#include "usb_commands/usb_command_apply_config.h"
#include "usb_commands/usb_command_read_config.h"
#include "usb_commands/usb_command_write_config.h"
@@ -31,8 +15,6 @@
uint8_t UsbDebugInfo[USB_GENERIC_HID_OUT_BUFFER_LENGTH];
// Functions for setting error statuses
void SetUsbError(uint8_t error)
{
GenericHidOutBuffer[0] = error;
@@ -48,8 +30,6 @@ void SetUsbResponseWord(uint16_t response)
*((uint16_t*)(GenericHidOutBuffer+1)) = response;
}
// The main protocol handler function
void UsbProtocolHandler(void)
{
bzero(GenericHidOutBuffer, USB_GENERIC_HID_OUT_BUFFER_LENGTH);