summaryrefslogtreecommitdiff
path: root/firmware/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 5c800bde03..f585544024 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -235,7 +235,7 @@ static void usb_thread(void)
235 /* Tell all threads that they have to back off the ATA. 235 /* Tell all threads that they have to back off the ATA.
236 We subtract one for our own thread. */ 236 We subtract one for our own thread. */
237 num_acks_to_expect = 237 num_acks_to_expect =
238 queue_broadcast(SYS_USB_CONNECTED, NULL) - 1; 238 queue_broadcast(SYS_USB_CONNECTED, 0) - 1;
239 waiting_for_ack = true; 239 waiting_for_ack = true;
240 DEBUGF("USB inserted. Waiting for ack from %d threads...\n", 240 DEBUGF("USB inserted. Waiting for ack from %d threads...\n",
241 num_acks_to_expect); 241 num_acks_to_expect);
@@ -290,7 +290,7 @@ static void usb_thread(void)
290 290
291 /* Tell all threads that we are back in business */ 291 /* Tell all threads that we are back in business */
292 num_acks_to_expect = 292 num_acks_to_expect =
293 queue_broadcast(SYS_USB_DISCONNECTED, NULL) - 1; 293 queue_broadcast(SYS_USB_DISCONNECTED, 0) - 1;
294 waiting_for_ack = true; 294 waiting_for_ack = true;
295 DEBUGF("USB extracted. Waiting for ack from %d threads...\n", 295 DEBUGF("USB extracted. Waiting for ack from %d threads...\n",
296 num_acks_to_expect); 296 num_acks_to_expect);
@@ -392,9 +392,9 @@ static void usb_tick(void)
392 if(countdown == 0) 392 if(countdown == 0)
393 { 393 {
394 if(current_status) 394 if(current_status)
395 queue_post(&usb_queue, USB_INSERTED, NULL); 395 queue_post(&usb_queue, USB_INSERTED, 0);
396 else 396 else
397 queue_post(&usb_queue, USB_EXTRACTED, NULL); 397 queue_post(&usb_queue, USB_EXTRACTED, 0);
398 } 398 }
399 } 399 }
400 } 400 }
@@ -403,7 +403,7 @@ static void usb_tick(void)
403 { 403 {
404 usb_mmc_countdown--; 404 usb_mmc_countdown--;
405 if (usb_mmc_countdown == 0) 405 if (usb_mmc_countdown == 0)
406 queue_post(&usb_queue, USB_REENABLE, NULL); 406 queue_post(&usb_queue, USB_REENABLE, 0);
407 } 407 }
408#endif 408#endif
409} 409}
@@ -411,7 +411,7 @@ static void usb_tick(void)
411 411
412void usb_acknowledge(long id) 412void usb_acknowledge(long id)
413{ 413{
414 queue_post(&usb_queue, id, NULL); 414 queue_post(&usb_queue, id, 0);
415} 415}
416 416
417void usb_init(void) 417void usb_init(void)