Move UsbDebugInfo into usb_command_get_debug_info.[ch] and remove external UsbDebugInfo references.

This commit is contained in:
László Monda
2017-11-05 19:07:12 +01:00
parent ebd06ebbc6
commit 3f52819c0e
6 changed files with 10 additions and 11 deletions

View File

@@ -4,7 +4,6 @@
#include "i2c.h"
#include "peripherals/reset_button.h"
#include "key_action.h"
#include "usb_protocol_handler.h"
static usb_device_endpoint_struct_t UsbMouseEndpoints[USB_MOUSE_ENDPOINT_COUNT] = {{
USB_MOUSE_ENDPOINT_INDEX | (USB_IN << USB_DESCRIPTOR_ENDPOINT_ADDRESS_DIRECTION_SHIFT),
@@ -60,8 +59,6 @@ void ResetActiveUsbMouseReport(void)
static volatile usb_status_t usbMouseAction(void)
{
usb_mouse_report_t *mouseReport = getInactiveUsbMouseReport();
*((uint16_t*)(UsbDebugInfo+16)) = mouseReport->x;
*((uint16_t*)(UsbDebugInfo+18)) = mouseReport->y;
IsUsbMouseReportSent = true;
return USB_DeviceHidSend(UsbCompositeDevice.mouseHandle, USB_MOUSE_ENDPOINT_INDEX,
(uint8_t*)mouseReport, USB_MOUSE_REPORT_LENGTH);