diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2006-12-19 16:50:07 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2006-12-19 16:50:07 +0000 |
| commit | 4b902679cc5fcca7f4e8d83b25112754f7903736 (patch) | |
| tree | 7853f7d80a4254f521107c2c6e7191d3a1e1974e /firmware/usb.c | |
| parent | d152b6492a2371c261c195494864c3744609cf3c (diff) | |
| download | rockbox-4b902679cc5fcca7f4e8d83b25112754f7903736.zip rockbox-4b902679cc5fcca7f4e8d83b25112754f7903736.tar.gz rockbox-4b902679cc5fcca7f4e8d83b25112754f7903736.tar.bz2 rockbox-4b902679cc5fcca7f4e8d83b25112754f7903736.tar.xz | |
Convert queues to use intptr_t for event data and return values as most of the time pointer are not passed and it should make some things a bit cleaner.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11818 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usb.c')
| -rw-r--r-- | firmware/usb.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index 5c800bd..f585544 100644 --- a/firmware/usb.c +++ b/firmware/usb.c @@ -235,7 +235,7 @@ static void usb_thread(void) /* Tell all threads that they have to back off the ATA. We subtract one for our own thread. */ num_acks_to_expect = - queue_broadcast(SYS_USB_CONNECTED, NULL) - 1; + queue_broadcast(SYS_USB_CONNECTED, 0) - 1; waiting_for_ack = true; DEBUGF("USB inserted. Waiting for ack from %d threads...\n", num_acks_to_expect); @@ -290,7 +290,7 @@ static void usb_thread(void) /* Tell all threads that we are back in business */ num_acks_to_expect = - queue_broadcast(SYS_USB_DISCONNECTED, NULL) - 1; + queue_broadcast(SYS_USB_DISCONNECTED, 0) - 1; waiting_for_ack = true; DEBUGF("USB extracted. Waiting for ack from %d threads...\n", num_acks_to_expect); @@ -392,9 +392,9 @@ static void usb_tick(void) if(countdown == 0) { if(current_status) - queue_post(&usb_queue, USB_INSERTED, NULL); + queue_post(&usb_queue, USB_INSERTED, 0); else - queue_post(&usb_queue, USB_EXTRACTED, NULL); + queue_post(&usb_queue, USB_EXTRACTED, 0); } } } @@ -403,7 +403,7 @@ static void usb_tick(void) { usb_mmc_countdown--; if (usb_mmc_countdown == 0) - queue_post(&usb_queue, USB_REENABLE, NULL); + queue_post(&usb_queue, USB_REENABLE, 0); } #endif } @@ -411,7 +411,7 @@ static void usb_tick(void) void usb_acknowledge(long id) { - queue_post(&usb_queue, id, NULL); + queue_post(&usb_queue, id, 0); } void usb_init(void) |