SAM3/4 Interrupt initialization. Default interrupt priority not being set correctly

This commit is contained in:
Gregory Nutt 2014-04-17 14:02:22 -06:00
parent b83702dd8a
commit 9485fbf66e
3 changed files with 7 additions and 6 deletions

View File

@ -7198,3 +7198,6 @@
compilation. From Leo (2014-4-17).
* drivers/usbhost/usbhost_hidmouse.c: Don't include NAKs from the device
in the error count. From Leo (2014-4-17).
* arch/arm/src/sam34/sam_irq.c: Fix initialization of the default
priorities (2014-4-17).

View File

@ -372,7 +372,7 @@ void up_irqinitialize(void)
i > 0;
i--, regaddr += 4)
{
putreg32(0, regaddr);
putreg32(DEFPRIORITY32, regaddr);
}
/* currents_regs is non-NULL only while processing an interrupt */

View File

@ -1085,16 +1085,14 @@ static int usbhost_mouse_poll(int argc, char *argv[])
{
/* If DRVR_TRANSFER() returns EAGAIN, that simply means that
* the devices was not ready and has NAK'ed the transfer. That
* no be treated as an error (unless it persists for a long
* time).
* should not be treated as an error (unless it persists for a
* long time).
*/
udbg("ERROR: DRVR_TRANSFER returned: %d/%d\n", ret, nerrors);
if (ret != -EAGAIN)
{
nerrors++;
if (nerrors > 200)
if (++nerrors > 200)
{
udbg("Too many errors... aborting: %d\n", nerrors);
break;