]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blob - os/7.0.2/include/os/FreeRTOSConfig.h
Trigger context switch after ADC interrupts
[pes-rpp/rpp-lib.git] / os / 7.0.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_IDLE_HOOK                     0
28 #define configUSE_TICK_HOOK                     0
29 #define configUSE_TRACE_FACILITY                0
30 #define configUSE_16_BIT_TICKS                  0
31 #define configCPU_CLOCK_HZ                      ( ( unsigned portLONG ) RPP_RCLK_FREQ ) /* Timer clock. */
32 #define configTICK_RATE_HZ                      ( ( portTickType ) 1000 )
33 #define configMAX_PRIORITIES                    ( ( unsigned portBASE_TYPE ) 5 )
34 #define configMINIMAL_STACK_SIZE                ( ( unsigned portSHORT ) 128 )
35 #define configTOTAL_HEAP_SIZE                   ( ( size_t ) 65535 )
36 #define configMAX_TASK_NAME_LEN                 ( 16 )
37 #define configIDLE_SHOULD_YIELD                 1
38 #define configGENERATE_RUN_TIME_STATS           0
39 #define configUSE_MALLOC_FAILED_HOOK            1
40 #define configCHECK_FOR_STACK_OVERFLOW          2
41
42 /* Co-routine definitions. */
43 #define configUSE_CO_ROUTINES                   0
44 #define configMAX_CO_ROUTINE_PRIORITIES         ( 2 )
45
46 /* Mutexes */
47 #define configUSE_MUTEXES                       1
48 #define configUSE_RECURSIVE_MUTEXES             0
49
50 /* Semaphores */
51 #define configUSE_COUNTING_SEMAPHORES           1
52
53 /* Timers */
54 #define configUSE_TIMERS                        0
55 #define configTIMER_TASK_PRIORITY               ( 0 )
56 #define configTIMER_QUEUE_LENGTH                0
57 #define configTIMER_TASK_STACK_DEPTH            ( 0 )
58
59 /* Set the following definitions to 1 to include the API function, or zero to exclude the API function. */
60 #define INCLUDE_vTaskPrioritySet                1
61 #define INCLUDE_uxTaskPriorityGet               1
62 #define INCLUDE_vTaskDelete                     1
63 #define INCLUDE_vTaskCleanUpResources           0
64 #define INCLUDE_vTaskSuspend                    1
65 #define INCLUDE_xTaskResumeFromISR              1
66 #define INCLUDE_vTaskDelayUntil                 1
67 #define INCLUDE_vTaskDelay                      1
68 #define INCLUDE_xTaskGetSchedulerState          1
69 #define INCLUDE_uxTaskGetStackHighWaterMark     1
70 #define INCLUDE_pcTaskGetTaskName               1
71
72 #endif /* FREERTOS_CONFIG_H */