]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_M4F_Infineon_XMC4500_Keil/FreeRTOSConfig.h
Update the Keil XMC4500 demo project to include build configurations for the XMC4200...
[freertos] / FreeRTOS / Demo / CORTEX_M4F_Infineon_XMC4500_Keil / FreeRTOSConfig.h
index b3e227122d3d2a898253ebb61f80c396b56f68d0..e1e30d39c8ebd4068967a64a4760a1d352bc4cb8 100644 (file)
@@ -89,7 +89,7 @@ extern uint32_t SystemCoreClock;
 #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
@@ -158,5 +158,39 @@ standard names. */
 #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