]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/RISC-V-Qemu-sifive_e-FreedomStudio/FreeRTOSConfig.h
Backup checking of the Freedom Studio RISC-V project - still a work in progress.
[freertos] / FreeRTOS / Demo / RISC-V-Qemu-sifive_e-FreedomStudio / FreeRTOSConfig.h
index c9e825c5097fa1470b1f3525e69db6cd9a78c8ef..db200a51997b465239404ce8baf090871759623a 100644 (file)
 #define configCLINT_BASE_ADDRESS               CLINT_CTRL_ADDR\r
 #define configUSE_PREEMPTION                   1\r
 #define configUSE_IDLE_HOOK                            0\r
-#define configUSE_TICK_HOOK                            0\r
+#define configUSE_TICK_HOOK                            1\r
 #define configCPU_CLOCK_HZ                             ( 10000000 ) /*QEMU*/\r
 #define configTICK_RATE_HZ                             ( ( TickType_t ) 1000 )\r
 #define configMAX_PRIORITIES                   ( 5 )\r
-#define configMINIMAL_STACK_SIZE               ( ( unsigned short ) 512 )\r
-#define configTOTAL_HEAP_SIZE                  ( ( size_t ) ( 8 * 1024 ) )\r
+#define configMINIMAL_STACK_SIZE               ( ( unsigned short ) 85 )\r
+#define configTOTAL_HEAP_SIZE                  ( ( size_t ) 14300 )\r
 #define configMAX_TASK_NAME_LEN                        ( 16 )\r
-#define configUSE_TRACE_FACILITY               1\r
+#define configUSE_TRACE_FACILITY               0\r
 #define configUSE_16_BIT_TICKS                 0\r
 #define configIDLE_SHOULD_YIELD                        0\r
 #define configUSE_MUTEXES                              1\r
 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 )\r
 \r
 /* Software timer definitions. */\r
-#define configUSE_TIMERS                               0\r
-#define configTIMER_TASK_PRIORITY              ( 2 )\r
-#define configTIMER_QUEUE_LENGTH               2\r
-#define configTIMER_TASK_STACK_DEPTH   ( configMINIMAL_STACK_SIZE )\r
+#define configUSE_TIMERS                               1\r
+#define configTIMER_TASK_PRIORITY              ( configMAX_PRIORITIES - 1 )\r
+#define configTIMER_QUEUE_LENGTH               7\r
+#define configTIMER_TASK_STACK_DEPTH   ( 120 )\r
 \r
 /* Task priorities.  Allow these to be overridden. */\r
 #ifndef uartPRIMARY_PRIORITY\r
@@ -132,20 +132,21 @@ to exclude the API function. */
 #define INCLUDE_vTaskDelayUntil                        1\r
 #define INCLUDE_vTaskDelay                             1\r
 #define INCLUDE_eTaskGetState                  1\r
+#define INCLUDE_xTimerPendFunctionCall 1\r
 \r
 /* Normal assert() semantics without relying on the provision of an assert.h\r
 header file. */\r
-#define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); }\r
-\r
-/* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS\r
-standard names - or at least those used in the unmodified vector table. */\r
-//#define vPortSVCHandler SVCall_Handler\r
-//#define xPortPendSVHandler PendSV_Handler\r
-//#define vPortSysTickHandler SysTick_Handler\r
-\r
-extern void vApplicationMallocFailedHook();\r
-\r
-\r
-extern void vUARTWriteString( const char * const pcString );\r
+void vAssertCalled( void );\r
+#define configASSERT( x ) if( ( x ) == 0 ) vAssertCalled()\r
+\r
+/* Overwrite some of the stack sizes allocated to various test and demo tasks.\r
+Like all task stack sizes, the value is the number of words, not bytes. */\r
+#define configTIMER_TEST_TASK_STACK_SIZE 150\r
+#define configNOTIFIED_TEST_TASK_STACK_SIZE 120\r
+#define configEVENT_GROUP_SET_BIT_TEST_TASK_STACK_SIZE 110\r
+#define configEVENT_GROUP_RENDEZVOUS_TASK_STACK_SIZE 100\r
+#define configRECURSIVE_MUTEX_TASK_STACK_SIZE 100\r
+\r
+#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0\r
 \r
 #endif /* FREERTOS_CONFIG_H */\r