usb: Whitespace cleanup
This commit is contained in:
@ -90,25 +90,25 @@ static void usb_clear_all_pending_interrupts() {
|
|||||||
static void usb_wait_for_endpoint_priming_to_finish(const uint32_t mask) {
|
static void usb_wait_for_endpoint_priming_to_finish(const uint32_t mask) {
|
||||||
// Wait until controller has parsed new transfer descriptors and prepared
|
// Wait until controller has parsed new transfer descriptors and prepared
|
||||||
// receive buffers.
|
// receive buffers.
|
||||||
while( USB0_ENDPTPRIME & mask );
|
while( USB0_ENDPTPRIME & mask );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void usb_flush_endpoints(const uint32_t mask) {
|
static void usb_flush_endpoints(const uint32_t mask) {
|
||||||
// Clear any primed buffers. If a packet is in progress, that transfer
|
// Clear any primed buffers. If a packet is in progress, that transfer
|
||||||
// will continue until completion.
|
// will continue until completion.
|
||||||
USB0_ENDPTFLUSH = mask;
|
USB0_ENDPTFLUSH = mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void usb_wait_for_endpoint_flushing_to_finish(const uint32_t mask) {
|
static void usb_wait_for_endpoint_flushing_to_finish(const uint32_t mask) {
|
||||||
// Wait until controller has flushed all endpoints / cleared any primed
|
// Wait until controller has flushed all endpoints / cleared any primed
|
||||||
// buffers.
|
// buffers.
|
||||||
while( USB0_ENDPTFLUSH & mask );
|
while( USB0_ENDPTFLUSH & mask );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void usb_flush_primed_endpoints(const uint32_t mask) {
|
static void usb_flush_primed_endpoints(const uint32_t mask) {
|
||||||
usb_wait_for_endpoint_priming_to_finish(mask);
|
usb_wait_for_endpoint_priming_to_finish(mask);
|
||||||
usb_flush_endpoints(mask);
|
usb_flush_endpoints(mask);
|
||||||
usb_wait_for_endpoint_flushing_to_finish(mask);
|
usb_wait_for_endpoint_flushing_to_finish(mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void usb_flush_all_primed_endpoints() {
|
static void usb_flush_all_primed_endpoints() {
|
||||||
|
Reference in New Issue
Block a user