9
0
Fork 0

STM32: More places where up_prioritize_irq is called when CONFIG_ARCH_IRQPRIO is not defined. Sourceforge ticket #26

This commit is contained in:
Gregory Nutt 2014-04-28 07:07:47 -06:00
parent ed8c667da4
commit 9811576ddd
9 changed files with 28 additions and 10 deletions

View File

@ -7251,7 +7251,7 @@
* arch/z16/src/z16f_timerisr.c: Fix calculation of timer
reload and prescaler. The timer frequency was way too fast
(2014-4-25).
* arch/arm/src/stm32/stm32_otgfsdev.c: Sourceforge Ticket #26.
up_prioritize_irq should not be called if CONFIG_ARCH_IRQPRIO
is not defined (2014-4-25).
* arch/arm/src/stm32/stm32_otgfsdev.c and others: Sourceforge
Ticket #26. up_prioritize_irq should not be called if
CONFIG_ARCH_IRQPRIO is not defined (2014-4-25).

View File

@ -1672,9 +1672,11 @@ static int stm32_attach(FAR struct sdio_dev_s *dev)
up_enable_irq(STM32_IRQ_SDIO);
/* Set the interrrupt priority */
#ifdef CONFIG_ARCH_IRQPRIO
/* Set the interrupt priority */
up_prioritize_irq(STM32_IRQ_SDIO, CONFIG_SDIO_PRI);
#endif
}
return ret;

View File

@ -392,7 +392,12 @@ static int stm32_tim_setisr(FAR struct stm32_tim_dev_s *dev,
irq_attach(vectorno, handler);
up_enable_irq(vectorno);
//up_prioritize_irq(vectorno, NVIC_SYSH_PRIORITY_DEFAULT);
#ifdef CONFIG_ARCH_IRQPRIO
/* Set the interrupt priority */
up_prioritize_irq(vectorno, NVIC_SYSH_PRIORITY_DEFAULT);
#endif
return OK;
}

View File

@ -3867,10 +3867,12 @@ int usbdev_register(struct usbdevclass_driver_s *driver)
up_enable_irq(STM32_IRQ_USBHP);
up_enable_irq(STM32_IRQ_USBLP);
/* Set the interrrupt priority */
#ifdef CONFIG_ARCH_IRQPRIO
/* Set the interrupt priority */
up_prioritize_irq(STM32_IRQ_USBHP, CONFIG_USB_PRI);
up_prioritize_irq(STM32_IRQ_USBLP, CONFIG_USB_PRI);
#endif
/* Enable pull-up to connect the device. The host should enumerate us
* some time after this

View File

@ -359,9 +359,11 @@ void weak_function up_dmainitialize(void)
up_enable_irq(dmach->irq);
/* Set the interrrupt priority */
#ifdef CONFIG_ARCH_IRQPRIO
/* Set the interrupt priority */
up_prioritize_irq(dmach->irq, CONFIG_DMA_PRI);
#endif
}
}

View File

@ -493,9 +493,11 @@ void weak_function up_dmainitialize(void)
up_enable_irq(dmast->irq);
/* Set the interrrupt priority */
#ifdef CONFIG_ARCH_IRQPRIO
/* Set the interrupt priority */
up_prioritize_irq(dmast->irq, CONFIG_DMA_PRI);
#endif
}
}

View File

@ -492,9 +492,11 @@ void weak_function up_dmainitialize(void)
up_enable_irq(dmast->irq);
/* Set the interrrupt priority */
#ifdef CONFIG_ARCH_IRQPRIO
/* Set the interrupt priority */
up_prioritize_irq(dmast->irq, CONFIG_DMA_PRI);
#endif
}
}

View File

@ -122,6 +122,9 @@ Version 5.0.1
All testing has been performed with ZSD II verion 5.0.1 for the ZNEO.
There are some problems with this compiler version. See the section
entitled "Patches" below.
Other Versions
If you use any version of ZDS-II other than 5.0.1 or if you install ZDS-II

View File

@ -495,7 +495,7 @@ static int task_tcbargsetup(FAR struct task_tcb_s *tcb,
* Description:
* This functions is called only from task_argsetup() for the case of the
* kernel build where the argv[] array and all strings are copied to the
* task's stack. This is done because the TCB (and kernal allocated
* task's stack. This is done because the TCB (and kernel allocated
* strings) are only accessible in kernel-mode. Data on the stack, on the
* other hand, is guaranteed to be accessible no matter what mode the
* task runs in.