#define configTICK_RATE_HZ ( ( portTickType ) 1000 )\r
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )\r
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 130 )\r
-#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 40960 ) )\r
+#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 22800 ) )\r
#define configMAX_TASK_NAME_LEN ( 10 )\r
#define configUSE_TRACE_FACILITY 1\r
#define configUSE_16_BIT_TICKS 0\r
#define xPortPendSVHandler PendSV_Handler\r
#define xPortSysTickHandler SysTick_Handler\r
\r
+\r
+/* Demo application specific settings. */\r
+#if defined( PART_XMC4500 )\r
+ /* Hardware includes. */\r
+ #include "XMC4500.h"\r
+ #include "System_XMC4500.h"\r
+\r
+ /* Configure pin P3.9 for the LED. */\r
+ #define configCONFIGURE_LED() ( PORT3->IOCR8 = 0x00008000 )\r
+ /* To toggle the single LED */\r
+ #define configTOGGLE_LED() ( PORT3->OMR = 0x02000200 )\r
+#elif defined( PART_XMC4400 )\r
+ /* Hardware includes. */\r
+ #include "XMC4400.h"\r
+ #include "System_XMC4200.h"\r
+\r
+ /* Configure pin P5.2 for the LED. */\r
+ #define configCONFIGURE_LED() ( PORT5->IOCR0 = 0x00800000 )\r
+ /* To toggle the single LED */\r
+ #define configTOGGLE_LED() ( PORT5->OMR = 0x00040004 )\r
+#elif defined( PART_XMC4200 )\r
+ /* Hardware includes. */\r
+ #include "XMC4200.h"\r
+ #include "System_XMC4200.h"\r
+\r
+ /* Configure pin P2.1 for the LED. */\r
+ #define configCONFIGURE_LED() PORT2->IOCR0 = 0x00008000; PORT2->HWSEL &= ~0x0000000cUL\r
+ /* To toggle the single LED */\r
+ #define configTOGGLE_LED() ( PORT2->OMR = 0x00020002 )\r
+#else\r
+ #error Part number not specified in project options\r
+#endif\r
+\r
+\r
#endif /* FREERTOS_CONFIG_H */\r
\r