Skip to content
Snippets Groups Projects
Commit 623eda38 authored by cnlohr's avatar cnlohr
Browse files

I am just chasing my tail

parent 64866b91
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#define FUSB_SUPPORTS_SLEEP 0 #define FUSB_SUPPORTS_SLEEP 0
#define FUSB_HID_INTERFACES 2 #define FUSB_HID_INTERFACES 2
#define FUSB_CURSED_TURBO_DMA 1 #define FUSB_CURSED_TURBO_DMA 1
#define FUSB_HID_NONSTANDARD 1 #define FUSB_HID_USER_REPORTS 1
#include "usb_defines.h" #include "usb_defines.h"
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include "ch32v003fun.h" #include "ch32v003fun.h"
#include <stdio.h> #include <stdio.h>
#include <string.h>
#include "fsusb.h" #include "fsusb.h"
uint32_t count; uint32_t count;
...@@ -14,7 +15,7 @@ void handle_debug_input( int numbytes, uint8_t * data ) ...@@ -14,7 +15,7 @@ void handle_debug_input( int numbytes, uint8_t * data )
count += numbytes; count += numbytes;
} }
int HandleHidNonStandardSetup( struct _USBState * ctx, tusb_control_request_t * req ) int HandleHidUserReportSetup( struct _USBState * ctx, tusb_control_request_t * req )
{ {
/* /*
...@@ -45,7 +46,7 @@ int HandleHidNonStandardSetup( struct _USBState * ctx, tusb_control_request_t * ...@@ -45,7 +46,7 @@ int HandleHidNonStandardSetup( struct _USBState * ctx, tusb_control_request_t *
return 0; return 0;
} }
int HandleHidNonStandardDataOut( struct _USBState * ctx, uint8_t * data, int len ) int HandleHidUserReportDataOut( struct _USBState * ctx, uint8_t * data, int len )
{ {
int i; int i;
for( i = 0; i < len; i++ ) for( i = 0; i < len; i++ )
...@@ -57,7 +58,7 @@ int HandleHidNonStandardDataOut( struct _USBState * ctx, uint8_t * data, int len ...@@ -57,7 +58,7 @@ int HandleHidNonStandardDataOut( struct _USBState * ctx, uint8_t * data, int len
return 0; return 0;
} }
void HandleHidNonStandardDataIn( struct _USBState * ctx, uint8_t * data, int len ) void HandleHidUserReportDataIn( struct _USBState * ctx, uint8_t * data, int len )
{ {
memset( data, 0xcc, len ); memset( data, 0xcc, len );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment