libopencm3: Update
This commit is contained in:
@ -93,13 +93,13 @@ static void endpoint_add_transfer(
|
|||||||
void usb_queue_flush_endpoint(const usb_endpoint_t* const endpoint)
|
void usb_queue_flush_endpoint(const usb_endpoint_t* const endpoint)
|
||||||
{
|
{
|
||||||
uint_fast8_t index = USB_ENDPOINT_INDEX(endpoint->address);
|
uint_fast8_t index = USB_ENDPOINT_INDEX(endpoint->address);
|
||||||
cc_disable_interrupts();
|
cm_disable_interrupts();
|
||||||
while (endpoint_transfers[index]) {
|
while (endpoint_transfers[index]) {
|
||||||
usb_transfer_t * transfer = endpoint_transfers[index];
|
usb_transfer_t * transfer = endpoint_transfers[index];
|
||||||
endpoint_transfers[index] = transfer->next;
|
endpoint_transfers[index] = transfer->next;
|
||||||
free_transfer(transfer);
|
free_transfer(transfer);
|
||||||
}
|
}
|
||||||
cc_enable_interrupts();
|
cm_enable_interrupts();
|
||||||
}
|
}
|
||||||
|
|
||||||
void usb_transfer_schedule(
|
void usb_transfer_schedule(
|
||||||
@ -132,7 +132,7 @@ void usb_transfer_schedule(
|
|||||||
transfer->completion_cb = completion_cb;
|
transfer->completion_cb = completion_cb;
|
||||||
transfer->endpoint = (usb_endpoint_t*) endpoint;
|
transfer->endpoint = (usb_endpoint_t*) endpoint;
|
||||||
|
|
||||||
cc_disable_interrupts();
|
cm_disable_interrupts();
|
||||||
usb_transfer_t* tail = endpoint_transfers[index];
|
usb_transfer_t* tail = endpoint_transfers[index];
|
||||||
endpoint_add_transfer(endpoint, transfer);
|
endpoint_add_transfer(endpoint, transfer);
|
||||||
if (tail == NULL) {
|
if (tail == NULL) {
|
||||||
@ -143,7 +143,7 @@ void usb_transfer_schedule(
|
|||||||
for (; tail->next != NULL; tail = tail->next);
|
for (; tail->next != NULL; tail = tail->next);
|
||||||
usb_endpoint_schedule_append(endpoint, &tail->td, &transfer->td);
|
usb_endpoint_schedule_append(endpoint, &tail->td, &transfer->td);
|
||||||
}
|
}
|
||||||
cc_enable_interrupts();
|
cm_enable_interrupts();
|
||||||
}
|
}
|
||||||
|
|
||||||
void usb_transfer_schedule_ack(
|
void usb_transfer_schedule_ack(
|
||||||
|
Submodule firmware/libopencm3 updated: e0040d7c82...0aabbbe366
Reference in New Issue
Block a user