\r
REM Copy the FreeRTOS+UDP core files\r
copy %FREERTOS_UDP_SOURCE%\*.c FreeRTOS_Plus_UDP\r
- copy %FREERTOS_UDP_SOURCE%\include\*.h FreeRTOS_Plus_UDP\r
copy %FREERTOS_UDP_SOURCE%\readme.txt FreeRTOS_Plus_UDP\r
copy %FREERTOS_UDP_SOURCE%\include\*.* FreeRTOS_Plus_UDP\include\r
\r
#ifdef __NVIC_PRIO_BITS\r
#define configPRIO_BITS __NVIC_PRIO_BITS\r
#else\r
- #define configPRIO_BITS 5 /* 32 priority levels */\r
+ #define configPRIO_BITS 3 /* 8 priority levels */\r
#endif\r
\r
/* The maximum priority an interrupt that uses an interrupt safe FreeRTOS API\r
#define configMAX_LIBRARY_INTERRUPT_PRIORITY ( 5 )\r
\r
/* The minimum possible interrupt priority. */\r
-#define configMIN_LIBRARY_INTERRUPT_PRIORITY ( 31 )\r
+#define configMIN_LIBRARY_INTERRUPT_PRIORITY ( 7 )\r
\r
/* The lowest priority. */\r
#define configKERNEL_INTERRUPT_PRIORITY ( configMIN_LIBRARY_INTERRUPT_PRIORITY << (8 - configPRIO_BITS) )\r
#define xPortSysTickHandler SysTick_Handler\r
\r
\r
-\r
-\r
/*\r
* DEMO APPLICATION SPECIFIC DEFINITIONS FOLLOW FROM HERE\r
*/\r
\r
#define __CM3_REV 0x0101 /*!< Cortex-M3 Core Revision */\r
#define __MPU_PRESENT 1 /*!< MPU present or not */\r
-#define __NVIC_PRIO_BITS 4 /*!< Number of Bits used for Priority Levels */\r
+#define __NVIC_PRIO_BITS 3 /*!< Number of Bits used for Priority Levels */\r
#define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */\r
/** @} */ /* End of group Configuration_of_CMSIS */\r
\r
#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();
__attribute__ ((section(".after_vectors")))\r
void HardFault_Handler(void)\r
{\r
-return;\r
__asm volatile\r
(\r
" tst lr, #4 \n"\r