File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -58,11 +58,11 @@ static volatile int32_t breakValue = -1;
58
58
_Pragma (" pack()" )
59
59
60
60
// CDC
61
- #define CDC_ACM_INTERFACE pluggedInterface // CDC ACM
62
- #define CDC_DATA_INTERFACE pluggedInterface+ 1 // CDC Data
63
- #define CDC_ENDPOINT_ACM pluggedEndpoint
64
- #define CDC_ENDPOINT_OUT pluggedEndpoint+ 1
65
- #define CDC_ENDPOINT_IN pluggedEndpoint+ 2
61
+ #define CDC_ACM_INTERFACE pluggedInterface // CDC ACM
62
+ #define CDC_DATA_INTERFACE uint8_t ( pluggedInterface + 1 ) // CDC Data
63
+ #define CDC_ENDPOINT_ACM pluggedEndpoint
64
+ #define CDC_ENDPOINT_OUT pluggedEndpoint + 1
65
+ #define CDC_ENDPOINT_IN pluggedEndpoint + 2
66
66
67
67
#define CDC_RX CDC_ENDPOINT_OUT
68
68
#define CDC_TX CDC_ENDPOINT_IN
@@ -91,7 +91,7 @@ int Serial_::getInterface(uint8_t* interfaceNum)
91
91
return USBDevice.sendControl (&_cdcInterface, sizeof (_cdcInterface));
92
92
}
93
93
94
- int Serial_::getDescriptor (USBSetup& setup)
94
+ int Serial_::getDescriptor (USBSetup& /* setup */ )
95
95
{
96
96
return 0 ;
97
97
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class PluggableUSBModule {
35
35
virtual bool setup (USBSetup& setup) = 0;
36
36
virtual int getInterface (uint8_t * interfaceCount) = 0;
37
37
virtual int getDescriptor (USBSetup& setup) = 0;
38
- virtual void handleEndpoint (int ep ) {/* Do nothing */ }
38
+ virtual void handleEndpoint (int /* ep */ ) { /* Do nothing */ }
39
39
virtual uint8_t getShortName (char *name) { name[0 ] = ' A' +pluggedInterface; return 1 ; }
40
40
41
41
uint8_t pluggedInterface;
Original file line number Diff line number Diff line change 33
33
34
34
// bEndpointAddress in Endpoint Descriptor
35
35
#define USB_ENDPOINT_DIRECTION_MASK 0x80
36
- #define USB_ENDPOINT_OUT (addr ) ((addr) | 0x00)
37
- #define USB_ENDPOINT_IN (addr ) ((addr) | 0x80)
36
+ #define USB_ENDPOINT_OUT (addr ) uint8_t ((addr) | 0x00)
37
+ #define USB_ENDPOINT_IN (addr ) uint8_t ((addr) | 0x80)
38
38
39
39
#define USB_ENDPOINTS 7
40
40
You can’t perform that action at this time.
0 commit comments