Make less use of linked files and folders for better long-term maintainability by moving the source files under the newly created src directory and only linking that directory to the workspace.
This commit is contained in:
33
right/src/usb_composite_device.h
Normal file
33
right/src/usb_composite_device.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef __USB_COMPOSITE_DEVICE_H__
|
||||
#define __USB_COMPOSITE_DEVICE_H__
|
||||
|
||||
// Includes:
|
||||
|
||||
#include "usb_descriptor_configuration.h"
|
||||
|
||||
// Macros:
|
||||
|
||||
#define CONTROLLER_ID kUSB_ControllerKhci0
|
||||
#define USB_DEVICE_INTERRUPT_PRIORITY 3
|
||||
|
||||
// Typedefs:
|
||||
|
||||
typedef struct {
|
||||
usb_device_handle deviceHandle;
|
||||
class_handle_t mouseHandle;
|
||||
class_handle_t keyboardHandle;
|
||||
class_handle_t genericHidHandle;
|
||||
uint8_t attach;
|
||||
uint8_t currentConfiguration;
|
||||
uint8_t currentInterfaceAlternateSetting[USB_DEVICE_CONFIG_HID];
|
||||
} usb_composite_device_t;
|
||||
|
||||
// Variables:
|
||||
|
||||
extern usb_composite_device_t UsbCompositeDevice;
|
||||
|
||||
//Functions:
|
||||
|
||||
extern void InitUsb();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user