Move the USB protocol handler into its own file.
This commit is contained in:
18
right/src/usb_protocol_handler.h
Normal file
18
right/src/usb_protocol_handler.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef __USB_PROTOCOL_HANDLER_H__
|
||||
#define __USB_PROTOCOL_HANDLER_H__
|
||||
|
||||
// Includes:
|
||||
|
||||
#include "usb_interface_generic_hid.h"
|
||||
|
||||
// Macros:
|
||||
|
||||
#define USB_COMMAND_JUMP_TO_BOOTLOADER 0
|
||||
#define USB_COMMAND_TEST_LED 1
|
||||
#define USB_COMMAND_LED_DRIVER 2
|
||||
|
||||
// Functions:
|
||||
|
||||
extern void UsbProtocolHandler();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user