mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Make corrections to the interrupt priority configuration in the LPC1800 UDP demo that resulted from an incorrect NVIC_PRIOR_BITS setting in the LPC18xx.h header file.
This commit is contained in:
parent
eaacbb099a
commit
10fa546e60
|
@ -51,7 +51,6 @@ IF EXIST FreeRTOS_Source Goto END
|
|||
|
||||
REM Copy the FreeRTOS+UDP core files
|
||||
copy %FREERTOS_UDP_SOURCE%\*.c FreeRTOS_Plus_UDP
|
||||
copy %FREERTOS_UDP_SOURCE%\include\*.h FreeRTOS_Plus_UDP
|
||||
copy %FREERTOS_UDP_SOURCE%\readme.txt FreeRTOS_Plus_UDP
|
||||
copy %FREERTOS_UDP_SOURCE%\include\*.* FreeRTOS_Plus_UDP\include
|
||||
|
||||
|
|
|
@ -155,7 +155,7 @@ is one */
|
|||
#ifdef __NVIC_PRIO_BITS
|
||||
#define configPRIO_BITS __NVIC_PRIO_BITS
|
||||
#else
|
||||
#define configPRIO_BITS 5 /* 32 priority levels */
|
||||
#define configPRIO_BITS 3 /* 8 priority levels */
|
||||
#endif
|
||||
|
||||
/* The maximum priority an interrupt that uses an interrupt safe FreeRTOS API
|
||||
|
@ -163,7 +163,7 @@ function can have. Note that lower priority have numerically higher values. */
|
|||
#define configMAX_LIBRARY_INTERRUPT_PRIORITY ( 5 )
|
||||
|
||||
/* The minimum possible interrupt priority. */
|
||||
#define configMIN_LIBRARY_INTERRUPT_PRIORITY ( 31 )
|
||||
#define configMIN_LIBRARY_INTERRUPT_PRIORITY ( 7 )
|
||||
|
||||
/* The lowest priority. */
|
||||
#define configKERNEL_INTERRUPT_PRIORITY ( configMIN_LIBRARY_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )
|
||||
|
@ -178,8 +178,6 @@ standard names. */
|
|||
#define xPortSysTickHandler SysTick_Handler
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* DEMO APPLICATION SPECIFIC DEFINITIONS FOLLOW FROM HERE
|
||||
*/
|
||||
|
|
|
@ -158,7 +158,7 @@ typedef enum {
|
|||
|
||||
#define __CM3_REV 0x0101 /*!< Cortex-M3 Core Revision */
|
||||
#define __MPU_PRESENT 1 /*!< MPU present or not */
|
||||
#define __NVIC_PRIO_BITS 4 /*!< Number of Bits used for Priority Levels */
|
||||
#define __NVIC_PRIO_BITS 3 /*!< Number of Bits used for Priority Levels */
|
||||
#define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
|
||||
/** @} */ /* End of group Configuration_of_CMSIS */
|
||||
|
||||
|
|
|
@ -132,10 +132,10 @@ void USB_Init (LPC_USBDRV_INIT_T* cbs)
|
|||
|
||||
#ifdef USE_USB0
|
||||
NVIC_EnableIRQ(USB0_IRQn); // enable USB0 interrrupts
|
||||
NVIC_SetPriority(USB0_IRQn, configMAX_SYSCALL_INTERRUPT_PRIORITY );
|
||||
NVIC_SetPriority(USB0_IRQn, configMIN_LIBRARY_INTERRUPT_PRIORITY );
|
||||
#else
|
||||
NVIC_EnableIRQ(USB1_IRQn); // enable USB1 interrrupts
|
||||
NVIC_SetPriority(USB0_IRQn, configMAX_SYSCALL_INTERRUPT_PRIORITY );
|
||||
NVIC_SetPriority(USB0_IRQn, configMIN_LIBRARY_INTERRUPT_PRIORITY );
|
||||
#endif
|
||||
|
||||
USB_Reset();
|
||||
|
|
|
@ -413,7 +413,6 @@ void NMI_Handler(void)
|
|||
__attribute__ ((section(".after_vectors")))
|
||||
void HardFault_Handler(void)
|
||||
{
|
||||
return;
|
||||
__asm volatile
|
||||
(
|
||||
" tst lr, #4 \n"
|
||||
|
|
Loading…
Reference in a new issue