diff options
| author | hathach <[email protected]> | 2013-09-21 14:28:59 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-09-21 14:38:40 +0700 |
| commit | 57088638598ccd0ea185debb8ca0fc7cbb404587 (patch) | |
| tree | 500c081b52abe45535d7e0f64ff1e26673a6dc9e /tinyusb/host/ehci | |
| parent | d15ba08fdc5c75aa061dc7dde10eff54f6dc607f (diff) | |
house keeping, clean up warnings
Diffstat (limited to 'tinyusb/host/ehci')
| -rw-r--r-- | tinyusb/host/ehci/ehci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c index 9ec9fc7a8..3a8562a36 100644 --- a/tinyusb/host/ehci/ehci.c +++ b/tinyusb/host/ehci/ehci.c @@ -689,7 +689,9 @@ void hcd_isr(uint8_t hostid) { ehci_registers_t* const regs = get_operational_register(hostid); - uint32_t int_status = regs->usb_sts & regs->usb_int_enable; + uint32_t int_status = regs->usb_sts; + int_status &= regs->usb_int_enable; + regs->usb_sts |= int_status; // Acknowledge handled interrupt if (int_status == 0) |
