@@ -17,24 +17,10 @@ extern "C" {
1717#include <Fw/Types/BasicTypes.h>
1818#include <Platform/PlatformTypes.h>
1919
20- // ----------------------------------------------------------------------
21- // Type aliases
22- // ----------------------------------------------------------------------
23- #define FW_CONTEXT_DONT_CARE 0xFF //!< Don't care value for time contexts in sequences
24-
2520// ----------------------------------------------------------------------
2621// Configuration switches
2722// ----------------------------------------------------------------------
2823
29- // Boolean values for serialization
30- #ifndef FW_SERIALIZE_TRUE_VALUE
31- #define FW_SERIALIZE_TRUE_VALUE (0xFF) //!< Value encoded during serialization for boolean true
32- #endif
33-
34- #ifndef FW_SERIALIZE_FALSE_VALUE
35- #define FW_SERIALIZE_FALSE_VALUE (0x00) //!< Value encoded during serialization for boolean false
36- #endif
37-
3824// Allow objects to have names. Allocates storage for each instance
3925#ifndef FW_OBJECT_NAMES
4026#define FW_OBJECT_NAMES \
@@ -135,56 +121,6 @@ extern "C" {
135121#endif
136122#endif
137123
138- #if FW_OBJECT_REGISTRATION
139- // For the simple object registry provided with the framework, this specifies how many objects the registry will store.
140- #ifndef FW_OBJ_SIMPLE_REG_ENTRIES
141- #define FW_OBJ_SIMPLE_REG_ENTRIES 500 //!< Number of objects stored in simple object registry
142- #endif
143- // When dumping the contents of the registry, this specifies the size of the buffer used to store object names. Should
144- // be >= FW_OBJ_NAME_BUFFER_SIZE.
145- #ifndef FW_OBJ_SIMPLE_REG_BUFF_SIZE
146- #define FW_OBJ_SIMPLE_REG_BUFF_SIZE 255 //!< Size of object registry dump string
147- #endif
148- #endif
149-
150- #if FW_QUEUE_REGISTRATION
151- // For the simple queue registry provided with the framework, this specifies how many queues the registry will store.
152- #ifndef FW_QUEUE_SIMPLE_QUEUE_ENTRIES
153- #define FW_QUEUE_SIMPLE_QUEUE_ENTRIES 100 //!< Number of queues stored in simple queue registry
154- #endif
155- #endif
156-
157- // Specifies the size of the string holding the queue name for queues
158- #ifndef FW_QUEUE_NAME_BUFFER_SIZE
159- #define FW_QUEUE_NAME_BUFFER_SIZE 80 //!< Max size of message queue name
160- #endif
161-
162- // Specifies the size of the string holding the task name for active components and tasks
163- #ifndef FW_TASK_NAME_BUFFER_SIZE
164- #define FW_TASK_NAME_BUFFER_SIZE 80 //!< Max size of task name
165- #endif
166-
167- // Specifies the size of the buffer that contains a communications packet.
168- #ifndef FW_COM_BUFFER_MAX_SIZE
169- #define FW_COM_BUFFER_MAX_SIZE 233
170- #endif
171-
172- // Specifies the size of the buffer attached to state machine signals.
173- #ifndef FW_SM_SIGNAL_BUFFER_MAX_SIZE
174- #define FW_SM_SIGNAL_BUFFER_MAX_SIZE 128 // Not to exceed max value of FwSizeType
175- #endif
176-
177- // Specifies the size of the buffer that contains the serialized command arguments.
178-
179- #ifndef FW_CMD_ARG_BUFFER_MAX_SIZE
180- #define FW_CMD_ARG_BUFFER_MAX_SIZE (FW_COM_BUFFER_MAX_SIZE - sizeof(FwOpcodeType) - sizeof(FwPacketDescriptorType))
181- #endif
182-
183- // Specifies the maximum size of a string in a command argument
184- #ifndef FW_CMD_STRING_MAX_SIZE
185- #define FW_CMD_STRING_MAX_SIZE 40 //!< Max character size of command string arguments
186- #endif
187-
188124// Normally when a command is deserialized, the handler checks to see if there are any leftover
189125// bytes in the buffer. If there are, it assumes that the command was corrupted somehow since
190126// the serialized size should match the serialized size of the argument list. In some cases,
@@ -195,63 +131,12 @@ extern "C" {
195131#define FW_CMD_CHECK_RESIDUAL 1 //!< Check for leftover command bytes
196132#endif
197133
198- // Specifies the size of the buffer that contains the serialized log arguments.
199- #ifndef FW_LOG_BUFFER_MAX_SIZE
200- #define FW_LOG_BUFFER_MAX_SIZE (FW_COM_BUFFER_MAX_SIZE - sizeof(FwEventIdType) - sizeof(FwPacketDescriptorType))
201- #endif
202-
203- // Specifies the maximum size of a string in a log event
204- // Note: This constant truncates file names in assertion failure event reports
205- #ifndef FW_LOG_STRING_MAX_SIZE
206- #define FW_LOG_STRING_MAX_SIZE 200 //!< Max size of log string parameter type
207- #endif
208-
209- // Specifies the size of the buffer that contains the serialized telemetry value.
210- #ifndef FW_TLM_BUFFER_MAX_SIZE
211- #define FW_TLM_BUFFER_MAX_SIZE (FW_COM_BUFFER_MAX_SIZE - sizeof(FwChanIdType) - sizeof(FwPacketDescriptorType))
212- #endif
213-
214- // Specifies the size of the buffer that contains statement args for the FpySequencer
215- #ifndef FW_STATEMENT_ARG_BUFFER_MAX_SIZE
216- #define FW_STATEMENT_ARG_BUFFER_MAX_SIZE (FW_CMD_ARG_BUFFER_MAX_SIZE)
217- #endif
218-
219- // Specifies the maximum size of a string in a telemetry channel
220- #ifndef FW_TLM_STRING_MAX_SIZE
221- #define FW_TLM_STRING_MAX_SIZE 40 //!< Max size of channelized telemetry string type
222- #endif
223-
224- // Specifies the size of the buffer that contains the serialized parameter value.
225- #ifndef FW_PARAM_BUFFER_MAX_SIZE
226- #define FW_PARAM_BUFFER_MAX_SIZE (FW_COM_BUFFER_MAX_SIZE - sizeof(FwPrmIdType) - sizeof(FwPacketDescriptorType))
227- #endif
228-
229- // Specifies the maximum size of a string in a parameter
230- #ifndef FW_PARAM_STRING_MAX_SIZE
231- #define FW_PARAM_STRING_MAX_SIZE 40 //!< Max size of parameter string type
232- #endif
233-
234- // Specifies the maximum size of a file upload chunk
235- #ifndef FW_FILE_BUFFER_MAX_SIZE
236- #define FW_FILE_BUFFER_MAX_SIZE FW_COM_BUFFER_MAX_SIZE //!< Max size of file buffer (i.e. chunk of file)
237- #endif
238-
239- // Specifies the maximum size of a string in an interface call
240- #ifndef FW_INTERNAL_INTERFACE_STRING_MAX_SIZE
241- #define FW_INTERNAL_INTERFACE_STRING_MAX_SIZE 256 //!< Max size of interface string parameter type
242- #endif
243-
244134// Enables text logging of events as well as data logging. Adds a second logging port for text output.
245135// In order to set this to 0, FPRIME_ENABLE_TEXT_LOGGERS must be set to OFF.
246136#ifndef FW_ENABLE_TEXT_LOGGING
247137#define FW_ENABLE_TEXT_LOGGING 1 //!< Indicates whether text logging is turned on
248138#endif
249139
250- // Define the size of the text log string buffer. Should be large enough for format string and arguments
251- #ifndef FW_LOG_TEXT_BUFFER_SIZE
252- #define FW_LOG_TEXT_BUFFER_SIZE 256 //!< Max size of string for text log message
253- #endif
254-
255140// Define if serializables have toString() method. Turning off will save code space and
256141// string constants. Must be enabled if text logging enabled
257142#ifndef FW_SERIALIZABLE_TO_STRING
@@ -263,74 +148,6 @@ extern "C" {
263148#define FW_AMPCS_COMPATIBLE 0 //!< Whether or not JPL AMPCS ground system support is enabled.
264149#endif
265150
266- // Configuration for Fw::String
267-
268- #ifndef FW_FIXED_LENGTH_STRING_SIZE
269- #define FW_FIXED_LENGTH_STRING_SIZE 256 //!< Character array size for Fw::String
270- #endif
271-
272- // OS configuration
273- #ifndef FW_CONSOLE_HANDLE_MAX_SIZE
274- #define FW_CONSOLE_HANDLE_MAX_SIZE 24 //!< Maximum size of a handle for OS queues
275- #endif
276-
277- #ifndef FW_TASK_HANDLE_MAX_SIZE
278- #define FW_TASK_HANDLE_MAX_SIZE 224 //!< Maximum size of a handle for OS queues
279- #endif
280-
281- #ifndef FW_FILE_HANDLE_MAX_SIZE
282- #define FW_FILE_HANDLE_MAX_SIZE 16 //!< Maximum size of a handle for OS queues
283- #endif
284-
285- #ifndef FW_MUTEX_HANDLE_MAX_SIZE
286- #define FW_MUTEX_HANDLE_MAX_SIZE 72 //!< Maximum size of a handle for OS queues
287- #endif
288-
289- #ifndef FW_QUEUE_HANDLE_MAX_SIZE
290- #define FW_QUEUE_HANDLE_MAX_SIZE 352 //!< Maximum size of a handle for OS queues
291- #endif
292-
293- #ifndef FW_DIRECTORY_HANDLE_MAX_SIZE
294- #define FW_DIRECTORY_HANDLE_MAX_SIZE 16 //!< Maximum size of a handle for OS resources (files, queues, locks, etc.)
295- #endif
296-
297- #ifndef FW_FILESYSTEM_HANDLE_MAX_SIZE
298- #define FW_FILESYSTEM_HANDLE_MAX_SIZE 16 //!< Maximum size of a handle for OS resources (files, queues, locks, etc.)
299- #endif
300-
301- #ifndef FW_RAW_TIME_HANDLE_MAX_SIZE
302- #define FW_RAW_TIME_HANDLE_MAX_SIZE 32 //!< Maximum size of a handle for OS::RawTime objects
303- #endif
304-
305- #ifndef FW_RAW_TIME_SERIALIZATION_MAX_SIZE
306- #define FW_RAW_TIME_SERIALIZATION_MAX_SIZE 8 //!< Maximum allowed serialization size for Os::RawTime objects
307- #endif
308-
309- #ifndef FW_CONDITION_VARIABLE_HANDLE_MAX_SIZE
310- #define FW_CONDITION_VARIABLE_HANDLE_MAX_SIZE 56 //!< Maximum size of a handle for OS condition variables
311- #endif
312-
313- #ifndef FW_CPU_HANDLE_MAX_SIZE
314- #define FW_CPU_HANDLE_MAX_SIZE 16 //!< Maximum size of a handle for OS cpu
315- #endif
316-
317- #ifndef FW_MEMORY_HANDLE_MAX_SIZE
318- #define FW_MEMORY_HANDLE_MAX_SIZE 16 //!< Maximum size of a handle for OS memory
319- #endif
320-
321- #ifndef FW_HANDLE_ALIGNMENT
322- #define FW_HANDLE_ALIGNMENT 8 //!< Alignment of handle storage
323- #endif
324-
325- // Note: One buffer of this size will be stack-allocated during certain OSAL operations e.g. when copying a file
326- #ifndef FW_FILE_CHUNK_SIZE
327- #define FW_FILE_CHUNK_SIZE 512 //!< Chunk size for working with files in the OSAL layer
328- #endif
329-
330- #ifndef FW_ASSERT_COUNT_MAX
331- #define FW_ASSERT_COUNT_MAX 4
332- #endif
333-
334151// *** NOTE configuration checks are in Fw/Cfg/ConfigCheck.cpp in order to have
335152// the type definitions in Fw/Types/BasicTypes available.
336153#ifdef __cplusplus
0 commit comments