config.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Kubos Corporation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
24 #ifndef TELEMETRY_STORAGE_CONFIG_H
25 #define TELEMETRY_STORAGE_CONFIG_H
26 
28 #ifndef YOTTA_CFG_TELEMETRY_STORAGE_FILE_NAME_BUFFER_SIZE
29 #define FILE_NAME_BUFFER_SIZE 128
30 #else
31 #define FILE_NAME_BUFFER_SIZE YOTTA_CFG_TELEMETRY_STORAGE_FILE_NAME_BUFFER_SIZE
32 #endif
33 
35 #ifndef YOTTA_CFG_TELEMETRY_STORAGE_DATA_BUFFER_SIZE
36 #define DATA_BUFFER_SIZE 64
37 #else
38 #define DATA_BUFFER_SIZE YOTTA_CFG_TELEMETRY_STORAGE_DATA_BUFFER_SIZE
39 #endif
40 
42 #ifndef YOTTA_CFG_TELEMETRY_STORAGE_DATA_PART_SIZE
43 #define DATA_PART_SIZE 51200
44 #else
45 #define DATA_PART_SIZE YOTTA_CFG_TELEMETRY_STORAGE_DATA_PART_SIZE
46 #endif
47 
49 #ifndef YOTTA_CFG_TELEMETRY_STORAGE_DATA_MAX_PARTS
50 #define DATA_MAX_PARTS 10
51 #else
52 #define DATA_MAX_PARTS YOTTA_CFG_TELEMETRY_STORAGE_DATA_MAX_PARTS
53 #endif
54 
56 #ifndef YOTTA_CFG_TELEMETRY_STORAGE_DATA_OUTPUT_FORMAT
57 #define DATA_OUTPUT_FORMAT FORMAT_TYPE_CSV
58 #else
59 #define DATA_OUTPUT_FORMAT YOTTA_CFG_TELEMETRY_STORAGE_DATA_OUTPUT_FORMAT
60 #endif
61 
63 #ifndef YOTTA_CFG_TELEMETRY_STORAGE_SUBSCRIPTIONS
64 #define STORAGE_SUBSCRIPTIONS 0x0
65 #else
66 #define STORAGE_SUBSCRIPTIONS YOTTA_CFG_TELEMETRY_STORAGE_SUBSCRIPTIONS
67 #endif
68 
70 #ifndef YOTTA_CFG_TELEMETRY_STORAGE_SUBSCRIBE_RETRY_INTERVAL
71 #define STORAGE_SUBSCRIBE_RETRY_INTERVAL 50
72 #else
73 #define STORAGE_SUBSCRIBE_RETRY_INTERVAL YOTTA_CFG_TELEMETRY_STORAGE_SUBSCRIBE_RETRY_INTERVAL
74 #endif
75 
77 #ifndef YOTTA_CFG_TELEMETRY_STORAGE_STACK_DEPTH
78 #define STORAGE_TASK_STACK_DEPTH 1000
79 #else
80 #define STORAGE_TASK_STACK_DEPTH YOTTA_CFG_TELEMETRY_STORAGE_STACK_DEPTH
81 #endif
82 
84 #ifndef YOTTA_CFG_TELEMETRY_STORAGE_TASK_PRIORITY
85 #define STORAGE_TASK_PRIORITY 0
86 #else
87 #define STORAGE_TASK_PRIORITY YOTTA_CFG_TELEMETRY_STORAGE_TASK_PRIORITY
88 #endif
89 
90 #endif
91 
92 /* @} */