tested with IAR & keil for device ea4357, fix some warnings

This commit is contained in:
hathach
2014-03-23 17:33:58 +07:00
parent 5d5aa9b213
commit a8d32d81b3
3 changed files with 57 additions and 53 deletions

View File

@@ -297,7 +297,8 @@ void dcd_isr(uint8_t coreid)
{
(void) coreid;
uint32_t const int_status = LPC_USB->INTSTAT & LPC_USB->INTEN;
uint32_t const int_enable = LPC_USB->INTEN;
uint32_t const int_status = LPC_USB->INTSTAT & int_enable;
LPC_USB->INTSTAT = int_status; // Acknowledge handled interrupt
if (int_status == 0) return;