Move the USB protocol handler into its own file.

This commit is contained in:
László Monda
2016-09-26 23:49:50 +02:00
parent d2b810a3cf
commit 9e29018ff7
4 changed files with 51 additions and 33 deletions

View 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