clean up
This commit is contained in:
@@ -93,6 +93,7 @@ void led_blinking_task(void * p_para)
|
||||
#if TUSB_CFG_DEVICE_HID_KEYBOARD
|
||||
void keyboard_device_app_task(void * p_para)
|
||||
{
|
||||
#if 1
|
||||
if (tusb_device_is_configured())
|
||||
{
|
||||
static uint32_t count =0;
|
||||
@@ -106,12 +107,14 @@ void keyboard_device_app_task(void * p_para)
|
||||
);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#if TUSB_CFG_DEVICE_HID_MOUSE
|
||||
void mouse_device_app_task(void * p_para)
|
||||
{
|
||||
#if 1
|
||||
if (tusb_device_is_configured())
|
||||
{
|
||||
static uint32_t count =0;
|
||||
@@ -124,6 +127,7 @@ void mouse_device_app_task(void * p_para)
|
||||
.y = 20 } );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
#define TUSB_CFG_DEVICE_CONTROL_PACKET_SIZE 64
|
||||
|
||||
//------------- CLASS -------------//
|
||||
#define TUSB_CFG_DEVICE_HID_KEYBOARD 0
|
||||
#define TUSB_CFG_DEVICE_HID_KEYBOARD 1
|
||||
#define TUSB_CFG_DEVICE_HID_MOUSE 0
|
||||
#define TUSB_CFG_DEVICE_HID_GENERIC 0
|
||||
#define TUSB_CFG_DEVICE_MSC 0
|
||||
|
||||
@@ -109,6 +109,13 @@ typedef ATTR_PACKED_STRUCT(struct)
|
||||
tusb_descriptor_endpoint_t mouse_endpoint;
|
||||
#endif
|
||||
|
||||
//------------- Mass Storage -------------//
|
||||
#if TUSB_CFG_DEVICE_MSC
|
||||
tusb_descriptor_interface_t msc_interface;
|
||||
tusb_descriptor_endpoint_t msc_endpoint_in;
|
||||
tusb_descriptor_endpoint_t msc_endpoint_out;
|
||||
#endif
|
||||
|
||||
uint8_t null_termination; // NXP rom driver requires this to work
|
||||
} app_descriptor_configuration_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user