]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blob - os/8.2.2/include/os/FreeRTOSConfig.h
5eca637eb572a7755a8cef7499852cdc7827a52d
[pes-rpp/rpp-lib.git] / os / 8.2.2 / include / os / FreeRTOSConfig.h
1 #ifndef FREERTOS_CONFIG_H
2 #define FREERTOS_CONFIG_H
3
4 /*-----------------------------------------------------------
5  * Application specific definitions.
6  *
7  * These definitions should be adjusted for your particular hardware and
8  * application requirements.
9  *
10  * THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
11  * FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
12  *
13  * See http://www.freertos.org/a00110.html.
14  *----------------------------------------------------------*/
15
16
17 /*-----------------------------------------------------------
18  * RPP Notes:
19  *
20  * Please change configCHECK_FOR_STACK_OVERFLOW to 0 when going to production
21  * Check http://www.freertos.org/Stacks-and-stack-overflow-checking.html
22  *----------------------------------------------------------*/
23 #include "sys/port.h"
24
25
26 #define configUSE_PREEMPTION                    1
27 #define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
28 #define configUSE_IDLE_HOOK                     0
29 #define configUSE_TICK_HOOK                     0
30
31 #define configUSE_TRACE_FACILITY                0
32 #define configUSE_16_BIT_TICKS                  0
33 #define configCPU_CLOCK_HZ                      ( ( unsigned portLONG ) RPP_RCLK_FREQ ) /* Timer clock. */
34 #define configTICK_RATE_HZ                      ( ( portTickType ) 1000 )
35 #define configMAX_PRIORITIES                    ( 8 )
36 #define configMINIMAL_STACK_SIZE                ( ( unsigned portSHORT ) 128 )
37 #define configTOTAL_HEAP_SIZE                   ( ( size_t ) 65535 )
38 #define configMAX_TASK_NAME_LEN                 ( 16 )
39 #define configIDLE_SHOULD_YIELD                 1
40 #define configGENERATE_RUN_TIME_STATS           0
41 #define configUSE_MALLOC_FAILED_HOOK            1
42 #define configCHECK_FOR_STACK_OVERFLOW          2
43
44 /* Co-routine definitions. */
45 #define configUSE_CO_ROUTINES                   0
46 #define configMAX_CO_ROUTINE_PRIORITIES         ( 2 )
47
48 /* Mutexes */
49 #define configUSE_MUTEXES                       1
50 #define configUSE_RECURSIVE_MUTEXES             0
51
52 /* Semaphores */
53 #define configUSE_COUNTING_SEMAPHORES           1
54
55 /* Timers */
56 #define configUSE_TIMERS                        0
57 #define configTIMER_TASK_PRIORITY               ( 0 )
58 #define configTIMER_QUEUE_LENGTH                0
59 #define configTIMER_TASK_STACK_DEPTH            ( 0 )
60
61 /* Set the following definitions to 1 to include the API function, or zero to exclude the API function. */
62 #define INCLUDE_vTaskPrioritySet                1
63 #define INCLUDE_uxTaskPriorityGet               1
64 #define INCLUDE_vTaskDelete                     1
65 #define INCLUDE_vTaskCleanUpResources           0
66 #define INCLUDE_vTaskSuspend                    1
67 #define INCLUDE_xTaskResumeFromISR              1
68 #define INCLUDE_vTaskDelayUntil                 1
69 #define INCLUDE_vTaskDelay                      1
70 #define INCLUDE_xTaskGetSchedulerState          1
71 #define INCLUDE_uxTaskGetStackHighWaterMark     1
72 #define INCLUDE_pcTaskGetTaskName               1
73
74 #define configASSERT( x ) if( ( x ) == pdFALSE ) { taskDISABLE_INTERRUPTS(); for( ;; ); }
75
76 #endif /* FREERTOS_CONFIG_H */