INOS
inosdefault.h
Go to the documentation of this file.
1//******************************************************************************
26//******************************************************************************
27
28#if !defined( INC_INOSDEFAULT_H )
29#define INC_INOSDEFAULT_H
30
31//------------------------------------------------------------------------------
32// defines
33//------------------------------------------------------------------------------
34
35//
36// --- INOS Eventlogger related defines ---------------------------------------------
37
41#ifndef DF_INOS_EVENTLOGGER_ENTRIES
42#define DF_INOS_EVENTLOGGER_ENTRIES 8192
43#endif
44
49#ifndef DF_INOS_EVENTLOGGER_OVERRIDDEN_OFF
50// set to "none" by default
51#define DF_INOS_EVENTLOGGER_OVERRIDDEN_OFF {0,0,0,0}
52#endif
53
58#ifndef DF_INOS_EVENTLOGGER_OVERRIDDEN_ON
59// set to "none" by default
60#define DF_INOS_EVENTLOGGER_OVERRIDDEN_ON {0,0,0,0}
61#endif
62
63// --- Asymmetric systems related defines --------------------------------------
64
68#ifndef DF_INOS_PROCESSIMAGE_DIGITAL_INPUTS_NUMBER
69#define DF_INOS_PROCESSIMAGE_DIGITAL_INPUTS_NUMBER 16384
70#endif
71
75#ifndef DF_INOS_PROCESSIMAGE_DIGITAL_OUTPUTS_NUMBER
76#define DF_INOS_PROCESSIMAGE_DIGITAL_OUTPUTS_NUMBER 16384
77#endif
78
82#ifndef DF_INOS_PROCESSIMAGE_ANALOG_INPUTS_NUMBER
83#define DF_INOS_PROCESSIMAGE_ANALOG_INPUTS_NUMBER 16384
84#endif
85
89#ifndef DF_INOS_PROCESSIMAGE_ANALOG_OUTPUTS_NUMBER
90#define DF_INOS_PROCESSIMAGE_ANALOG_OUTPUTS_NUMBER 16384
91#endif
92
96#ifndef DF_INOS_PROCESSIMAGE_POSITION_NUMBER
97#define DF_INOS_PROCESSIMAGE_POSITION_NUMBER 16384
98#endif
99
105#ifndef DF_INOS_PROCESSIMAGE_FIND_FIRST
106#define DF_INOS_PROCESSIMAGE_FIND_FIRST 0
107#endif
108
112#ifndef DF_INOS_CORE_IS_GINSLAVE
113#define DF_INOS_CORE_IS_GINSLAVE 0
114#endif
115
120#ifndef DF_INOS_CORE_MASK_TABLES
121#define DF_INOS_CORE_MASK_TABLES 0x01
122#endif
123
127#ifndef DF_INOS_LOCALBUS_SHARED_MEMORY_SIZE
128#define DF_INOS_LOCALBUS_SHARED_MEMORY_SIZE 256
129#endif
130
134#ifndef DF_INOS_GINDEVICEHND_PRIO
135#define DF_INOS_GINDEVICEHND_PRIO 5
136#endif
137
138// --- MovePath related defines ------------------------------------------------
139
143#ifndef DF_INOS_MOVEPATH_MAX_AXES
144#define DF_INOS_MOVEPATH_MAX_AXES 4
148#endif
152#ifndef DF_INOS_MOVEPATH_MAX_POINTS
153#define DF_INOS_MOVEPATH_MAX_POINTS 512
154#endif
158#ifndef DF_INOS_MOVEPATH_MAX_HELPERS
159#define DF_INOS_MOVEPATH_MAX_HELPERS 4
160#endif
164#ifndef DF_INOS_MOVEPATH_CMD_QUEUE_SIZE
165#define DF_INOS_MOVEPATH_CMD_QUEUE_SIZE 32
166#endif
170#ifndef DF_INOS_MOVEPATH_MAX_STRING_LENGTH
171#define DF_INOS_MOVEPATH_MAX_STRING_LENGTH 63
172#endif
173//
174// --- Nurbs curve related defines ---------------------------------------------
175
179#ifndef DF_INOS_NURBSCURVE_MAX_DEGREE
180#define DF_INOS_NURBSCURVE_MAX_DEGREE 5
181#endif
187#ifndef DF_INOS_NURBSCURVE_INTERPOLATION_POINTS
188#define DF_INOS_NURBSCURVE_INTERPOLATION_POINTS 8
189#endif
190//
191// --- Indel image related defines ---------------------------------------------
192
196#ifndef DF_INOS_IMAGE_MAX_SIZE
197#define DF_INOS_IMAGE_MAX_SIZE (1024*1024)
198#endif
202#ifndef DF_INOS_IMAGE_MIN_SIZE
203#define DF_INOS_IMAGE_MIN_SIZE (1024)
204#endif
205
206//
207// --- McRobot related defines -------------------------------------------------
213#ifndef DF_INOS_MCDATA_MAX_SIZE
214#define DF_INOS_MCDATA_MAX_SIZE 256 // max data size
215#endif
216
217//
218// --- McTarget related defines ------------------------------------------------
223#ifndef DF_INOS_MCTARGET_PARAM
224#define DF_INOS_MCTARGET_PARAM "Flags=Msg Qsz=1024"
225#endif
226
227//
228// --- Multi core related defines ----------------------------------------------
229
233#ifndef DF_INOS_TIMING_CHECKS_CORELOCK_MAX_TIME_US
234// set to "15us" by default
235#define DF_INOS_TIMING_CHECKS_CORELOCK_MAX_TIME_US 15
236#endif
237
238//
239// --- Disable IRQ time debugging defines --------------------------------------
240
244#ifndef DF_INOS_TIMINIG_CHECKS_DISABLEINTERRUPTS_MAX_TIME_US
245// set to "15us" by default
246#define DF_INOS_TIMINIG_CHECKS_DISABLEINTERRUPTS_MAX_TIME_US 15
247#endif
248
249//
250// --- suspend time check debugging defines ------------------------------------
251
255#ifndef DF_INOS_TIMINIG_CHECKS_SUSPEND_MAX_TIME_US
256// set to "1000us" by default
257#define DF_INOS_TIMINIG_CHECKS_SUSPEND_MAX_TIME_US 1000
258#endif
259
260// --- ethernet frame capturing ------------------------------------------------
261
265#ifndef DF_INOS_ETHERNET_FRAME_CAPTURE_BUFFER_SIZE
266#define DF_INOS_ETHERNET_FRAME_CAPTURE_BUFFER_SIZE (2048*1024)
267#endif
281#ifndef DF_INOS_ETHERNET_FRAME_CAPTURE_SNAP_LENGTH
282#define DF_INOS_ETHERNET_FRAME_CAPTURE_SNAP_LENGTH 1522
283#endif
290#ifndef DF_INOS_ETHERNET_FRAME_CAPTURE_OPTIONS
291#define DF_INOS_ETHERNET_FRAME_CAPTURE_OPTIONS 0x00000001
292#endif
299#ifndef DF_INOS_ETHERNET_FRAME_CAPTURE_FILTER_PORT_TCP
300#define DF_INOS_ETHERNET_FRAME_CAPTURE_FILTER_PORT_TCP 0
301#endif
302#ifndef DF_INOS_ETHERNET_FRAME_CAPTURE_FILTER_PORT_UDP
303#define DF_INOS_ETHERNET_FRAME_CAPTURE_FILTER_PORT_UDP 0
304#endif
305//
306
307// --- CAN bus frame capturing ------------------------------------------------
308
312#ifndef DF_INOS_CAN_FRAME_CAPTURE_BUFFER_SIZE
313#define DF_INOS_CAN_FRAME_CAPTURE_BUFFER_SIZE (2048*1024)
314#endif
319#ifndef DF_INOS_CAN_FRAME_CAPTURE_SNAP_LENGTH
320#define DF_INOS_CAN_FRAME_CAPTURE_SNAP_LENGTH 16
321#endif
328#ifndef DF_INOS_CAN_FRAME_CAPTURE_OPTIONS
329#define DF_INOS_CAN_FRAME_CAPTURE_OPTIONS 0x00000001
330#endif
331//
332
333// --- interrupt handling ------------------------------------------------------
334
338#ifndef DF_INOS_IRQ_PRIO_HIGHEST
339#define DF_INOS_IRQ_PRIO_HIGHEST 0
340#endif
344#ifndef DF_INOS_FIQ_PRIO_LOWEST
345#define DF_INOS_FIQ_PRIO_LOWEST 0
346#endif
347
355#ifndef DF_INOS_IRQ_LEGACY_MODE_DEFAULT
356#define DF_INOS_IRQ_LEGACY_MODE_DEFAULT false
357#endif
358
359// --- JSON image parser ------------------------------------------------------
360
364#ifndef DF_INOS_JSON_MAX_TOKENS
365#define DF_INOS_JSON_MAX_TOKENS 1024
366#endif
367
368// --- INOS bus ----------------------------------------------------------------
369
374#ifndef DF_INOS_BUS_MAX_SUB_CYCLES
375#define DF_INOS_BUS_MAX_SUB_CYCLES 8
376#endif
377
378// --- INCO logger (Varlog) ----------------------------------------------------
379
383#ifndef DF_DATA_LOGGER_MAX_CHANNELS
384#define DF_DATA_LOGGER_MAX_CHANNELS 128
385#endif
386
387// --- CINOSTaskEx related -----------------------------------------------------
388
394#ifndef DF_INOS_TASKEXMSGPARAM_MAX_SIZE
395#define DF_INOS_TASKEXMSGPARAM_MAX_SIZE 1024
396#endif
397
404#ifndef DF_INOS_STRINGPARAM_MAX_SIZE
405#define DF_INOS_STRINGPARAM_MAX_SIZE 512
406#endif
407
408//------------------------------------------------------------------------------
409// KERNEL defines
410//------------------------------------------------------------------------------
411
415#ifndef DF_INOS_BOOT_STACK_SIZE
416#define DF_INOS_BOOT_STACK_SIZE 65536
417#endif
418
422#ifndef DF_INOS_BOOT_MEMORY_SIZE
423#if defined(INOS_CPU_LX2XX0A)
424#define DF_INOS_BOOT_MEMORY_SIZE (65536*4)
425#else
426#define DF_INOS_BOOT_MEMORY_SIZE 65536
427#endif
428#endif
429
434#ifndef DF_INOS_MAX_TASKS
435#define DF_INOS_MAX_TASKS 256
436#endif
437
442#ifndef DF_INOS_MAX_HANDLERS_1MS
443#define DF_INOS_MAX_HANDLERS_1MS 256
444#endif
445
449#ifndef DF_INOS_MAX_BUS_HOOKS
450#define DF_INOS_MAX_BUS_HOOKS 1024
451#endif
452
456#ifndef DF_INOS_MAX_BUS_HOOK_CATEGORIES
457#define DF_INOS_MAX_BUS_HOOK_CATEGORIES 4
458#endif
459
460//------------------------------------------------------------------------------
461// Base axis limit checker defines
462//------------------------------------------------------------------------------
466#ifndef DF_INOS_BASE_AXIS_LIMIT_CHECK_V_TOLERANCE
467#define DF_INOS_BASE_AXIS_LIMIT_CHECK_V_TOLERANCE REAL64(1.0001)
468#endif
469
473#ifndef DF_INOS_BASE_AXIS_LIMIT_CHECK_A_TOLERANCE
474#define DF_INOS_BASE_AXIS_LIMIT_CHECK_A_TOLERANCE REAL64(1.01)
475#endif
476
480#ifndef DF_INOS_BASE_AXIS_LIMIT_CHECK_J_TOLERANCE
481#define DF_INOS_BASE_AXIS_LIMIT_CHECK_J_TOLERANCE REAL64(2.0)
482#endif
483
484//------------------------------------------------------------------------------
485// Memory layout defines
486//------------------------------------------------------------------------------
487
492#ifndef DF_INOS_SDRAM_SIZE_CORE0
493#define DF_INOS_SDRAM_SIZE_CORE0 (128*1024*1024)
494#endif
495
499#ifndef INOS_BASE_ADDRESS
500#define INOS_BASE_ADDRESS 0
501#endif
502
506#ifndef DF_INOS_IMAGE_LOAD_MAX_SIZE
507#define DF_INOS_IMAGE_LOAD_MAX_SIZE (32*1024*1024)
508#endif
509
510//------------------------------------------------------------------------------
511// fieldbus defines
512//------------------------------------------------------------------------------
513
517#ifndef DF_INOS_BUS_INFO_MAX_HOOKS
518#define DF_INOS_BUS_INFO_MAX_HOOKS 128
519#endif
520
521//------------------------------------------------------------------------------
522// desktop defines
523//------------------------------------------------------------------------------
524
529#ifndef DF_INOS_DESKTOP_RAM_SIZE
530#define DF_INOS_DESKTOP_RAM_SIZE 256
531#endif
532
533//------------------------------------------------------------------------------
534// INCO defines
535//------------------------------------------------------------------------------
536
540#ifndef DF_INCO_MAX_FRAMES_DYN
541#define DF_INCO_MAX_FRAMES_DYN 1024
542#endif
543
551#ifndef DF_INCO_FEATURES_DIS
552#define DF_INCO_FEATURES_DIS 0x00000000
553#endif
554
560#ifndef DF_INCO_DEFAULT_RETRIES
561#define DF_INCO_DEFAULT_RETRIES 3
562#endif
563
569#ifndef DF_INCO_DEFAULT_TIMEOUT
570#define DF_INCO_DEFAULT_TIMEOUT 400
571#endif
572
577#ifndef DF_INCO_FRAMEPOOL_BACKTRACE
578#define DF_INCO_FRAMEPOOL_BACKTRACE 0
579#endif
580
586#ifndef DF_INCO_FRAMEPOOL_BACKTRACE_LIMIT
587#define DF_INCO_FRAMEPOOL_BACKTRACE_LIMIT 32
588#endif
589
599#ifndef DF_INOS_DESKTOP_CUSTOM_MAIN
600#define DF_INOS_DESKTOP_CUSTOM_MAIN 0
601#endif
602
603//------------------------------------------------------------------------------
604// INCOV defines
605//------------------------------------------------------------------------------
606
635#ifndef DF_INCOV_DISPATCHER_PRIO
636#define DF_INCOV_DISPATCHER_PRIO DF_INOS_TASK_PRIO_COMMUNICATION_LOWEST
637#endif
638
639//------------------------------------------------------------------------------
640// end of file
641//------------------------------------------------------------------------------
642
643#endif // INC_INOSDEFAULT_H