Skip to content
Commit 29f4e18a authored by Michael Hope's avatar Michael Hope Committed by Carles Cufí
Browse files

cdc_acm: fix interrupt handling, API registration, and propgate errors.



As per uart_pipe.c, irq_is_pending should only return true if any
*unmasked* interrupts are pending.

The device_get_binding() code only checks devices that have an API.
Set the API at compile time so that other devices can refer to the CDC
ACM driver.

usb_write() may return EBUSY if the endpoint is full.  Propagate this
for future use.

Signed-off-by: default avatarMichael Hope <mlhx@google.com>
parent e5ea7d22
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment