]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_A9_Cyclone_V_SoC_DK/FreeRTOSConfig.h
Demo project only:
[freertos] / FreeRTOS / Demo / CORTEX_A9_Cyclone_V_SoC_DK / FreeRTOSConfig.h
index 30c8e0a42ed2949e1a4fd18934685feac2046cf5..5f5d9d57ed0377a3308459bffa74a2a13694acd6 100644 (file)
 #ifndef FREERTOS_CONFIG_H\r
 #define FREERTOS_CONFIG_H\r
 \r
+/* Altera library includes. */\r
+#include "alt_timers.h"\r
+#include "alt_interrupt.h"\r
+#include "alt_globaltmr.h"\r
+\r
 /*-----------------------------------------------------------\r
  * Application specific definitions.\r
  *\r
  * "FromISR".  FreeRTOS maintains a separate interrupt safe API to enable\r
  * interrupt entry to be shorter, faster, simpler and smaller.\r
  *\r
- * The Cyclone V SoC implements 256 unique interrupt priorities.  For the\r
- * purpose of setting configMAX_API_CALL_INTERRUPT_PRIORITY 255 represents the\r
+ * The Cyclone V SoC implements 32 unique interrupt priorities.  For the\r
+ * purpose of setting configMAX_API_CALL_INTERRUPT_PRIORITY 32 represents the\r
  * lowest priority.\r
  */\r
 #define configMAX_API_CALL_INTERRUPT_PRIORITY  18\r
 #define configUSE_TICK_HOOK                                            1\r
 #define configMAX_PRIORITIES                                   ( 7 )\r
 #define configMINIMAL_STACK_SIZE                               ( ( unsigned short ) 200 )\r
-#define configTOTAL_HEAP_SIZE                                  ( 5 * 1024 )\r
+#define configTOTAL_HEAP_SIZE                                  ( 50 * 1024 )\r
 #define configMAX_TASK_NAME_LEN                                        ( 10 )\r
 #define configUSE_TRACE_FACILITY                               1\r
 #define configUSE_16_BIT_TICKS                                 0\r
@@ -155,8 +160,11 @@ readable ASCII form.  See the notes in the implementation of vTaskList() within
 FreeRTOS/Source/tasks.c for limitations. */\r
 #define configUSE_STATS_FORMATTING_FUNCTIONS   1\r
 \r
+/* Run time stats related definitions. */\r
+#define configGENERATE_RUN_TIME_STATS 1\r
+#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() alt_globaltmr_start()\r
+#define portGET_RUN_TIME_COUNTER_VALUE()  ( ( uint32_t ) ( alt_globaltmr_get64() >> ( uint64_t ) 16 ) )\r
 \r
-#define configGENERATE_RUN_TIME_STATS 0\r
 \r
 /* The size of the global output buffer that is available for use when there\r
 are multiple command interpreters running at once (for example, one on a UART\r
@@ -180,25 +188,6 @@ nothing to return to.  To avoid this define configTASK_RETURN_ADDRESS to 0.  */
 \r
 /****** Hardware specific settings. *******************************************/\r
 \r
-/* Rename the FreeRTOS interrupt handlers to the names used in the vector\r
-table. */\r
-//#define FreeRTOS_IRQ_Handler __cs3_isr_irq\r
-//#define FreeRTOS_SWI_Handler __cs3_isr_swi\r
-// --defsym=__cs3_isr_irq=FreeRTOS_IRQ_Handler --defsym=__cs3_isr_swi=FreeRTOS_SWI_Handler\r
-\r
-\r
-/* Altera library includes. */\r
-#include "hwlib.h"\r
-#include "alt_timers.h"\r
-#include "alt_clock_manager.h"\r
-#include "alt_interrupt.h"\r
-#include "alt_globaltmr.h"\r
-#include "alt_address_space.h"\r
-#include "alt_watchdog.h"\r
-#include "mmu_support.h"\r
-#include "cache_support.h"\r
-#include "fpga_support.h"\r
-\r
  typedef struct INT_DISPATCH_s\r
  {\r
      alt_int_callback_t pxISR;\r