EVE 1.0
rtos-conf.h
Go to the documentation of this file.
1 #ifndef EVE_RTOS_CONF_H_INCLUDED
2 #define EVE_RTOS_CONF_H_INCLUDED
3 /**********************************************************************/
4 /*
5  * Copyright (c) 2016, Jetro AS
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without modification,
9  * are permitted provided that the following conditions are met:
10  *
11  * 1. Redistributions of source code must retain the above copyright notice,
12  * this list of conditions and the following disclaimer.
13  * 2. Redistributions in binary form must reproduce the above copyright notice,
14  * this list of conditions and the following disclaimer in the documentation
15  * and/or other materials provided with the distribution.
16  * 3. The name of the author may not be used to endorse or promote products
17  * derived from this software without specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONRIBUTORS ``AS IS'' AND ANY EXPRESS
20  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
22  * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
24  * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
27  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
28  * OF SUCH DAMAGE.
29  *
30  * This file is part of the EVE platform.
31  */
32 
33 /**
34  * \file
35  * @brief Default rtos.conf.h
36  *
37  * @author DT, Jetro AS
38  */ /******************************************************************/
39 
40 #warning "Default rtos-conf.h is used, which is probably not what you want. Please copy it and edit in your project's include directory."
41 
42 /**
43  * \defgroup conf Configuration parameters
44  * \ingroup rtos
45  * @{
46  */
47 
48 
49 /**
50  * \def EVE_RTOS_LOW_LAT
51  * Enables aggressive rescheduling if set
52  */
53 #define EVE_RTOS_LOW_LAT (1)
54 
55 /**
56  * \def EVE_RTOS_TASK_POOL_COUNT
57  * Size of RTOS task pool, amount of tasks which can be created by xTaskCreate
58  */
59 #define EVE_RTOS_TASK_POOL_COUNT (3)
60 
61 /**
62  * \def EVE_RTOS_STACK_POOL_SIZE
63  * Size of RTOS stack pool, amount of bytes which can be allocated for stacks
64  */
65 #define EVE_RTOS_STACK_POOL_SIZE (1024)
66 
67 /**
68  * \def EVE_RTOS_SEMAPHORE_POOL_COUNT
69  * Size of RTOS semaphore pool, amount of mutextes and semaphores which can be created
70  */
71 #define EVE_RTOS_SEMAPHORE_POOL_COUNT (4)
72 
73 /**
74  * \def EVE_RTOS_TIMER_POOL_COUNT
75  * Size of RTOS timer pool, amount of timers which can be created by xTimerCreate
76  */
77 #define EVE_RTOS_TIMER_POOL_COUNT (4)
78 
79 /**
80  * \def EVE_RTOS_PENDED_WORK_POOL_COUNT
81  * Size of RTOS pended function pool, amount of workitems which can be scheduled by xTimerPendFunctionCall(-FromISR)
82  */
83 #define EVE_RTOS_PENDED_WORK_POOL_COUNT (4)
84 
85 /**
86  * \def EVE_RTOS_EVENT_GROUP_POOL_COUNT
87  * Size of RTOS event group pool, amount of event groups which can be created by xEventGroupCreate
88  */
89 #define EVE_RTOS_EVENT_GROUP_POOL_COUNT (4)
90 
91 /**
92  * \def EVE_RTOS_TCP_SOCKET_POOL_COUNT
93  * Size of RTOS socket pool, amount of sockets which can be created by socket() call
94  */
95 #define EVE_RTOS_TCP_SOCKET_POOL_COUNT (4)
96 
97 /**
98  * \def EVE_RTOS_SOCKET_CLOSE_TIMEOUT
99  * Timeout for gracefuly close.
100  */
101 #define EVE_RTOS_SOCKET_CLOSE_TIMEOUT (MS_TO_TICKS(1000))
102 
103 /** @} */ /* conf */
104 
105 #endif /* EVE_RTOS_CONF_H_INCLUDED */