@@ -92,8 +92,17 @@ int usb_cb_control_msg(USB_Setup_TypeDef *setup, uint8_t *resp, bool hardwired)
92
92
return resp_len ;
93
93
}
94
94
95
- int usb_cb_ep1_in (uint8_t * usbdata , int len , bool hardwired ) { return 0 ; }
96
- void usb_cb_ep3_out (uint8_t * usbdata , int len , bool hardwired ) { }
95
+ int usb_cb_ep1_in (uint8_t * usbdata , int len , bool hardwired ) {
96
+ UNUSED (usbdata );
97
+ UNUSED (len );
98
+ UNUSED (hardwired );
99
+ return 0 ;
100
+ }
101
+ void usb_cb_ep3_out (uint8_t * usbdata , int len , bool hardwired ) {
102
+ UNUSED (usbdata );
103
+ UNUSED (len );
104
+ UNUSED (hardwired );
105
+ }
97
106
98
107
int is_enumerated = 0 ;
99
108
void usb_cb_enumeration_complete () {
@@ -102,6 +111,7 @@ void usb_cb_enumeration_complete() {
102
111
}
103
112
104
113
void usb_cb_ep2_out (uint8_t * usbdata , int len , bool hardwired ) {
114
+ UNUSED (hardwired );
105
115
set_led (LED_RED , 0 );
106
116
for (int i = 0 ; i < len /4 ; i ++ ) {
107
117
// program byte 1
@@ -118,6 +128,7 @@ void usb_cb_ep2_out(uint8_t *usbdata, int len, bool hardwired) {
118
128
119
129
120
130
int spi_cb_rx (uint8_t * data , int len , uint8_t * data_out ) {
131
+ UNUSED (len );
121
132
int resp_len = 0 ;
122
133
switch (data [0 ]) {
123
134
case 0 :
@@ -247,7 +258,7 @@ void CAN1_SCE_IRQHandler() {
247
258
248
259
#endif
249
260
250
- void soft_flasher_start () {
261
+ void soft_flasher_start (void ) {
251
262
puts ("\n\n\n************************ FLASHER START ************************\n" );
252
263
253
264
enter_bootloader_mode = 0 ;
0 commit comments