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#if defined(FEATURE_INOS_FIELDBUS_GINLINK)
135 /* GinLink master */
136 #ifndef DF_INOS_GINDEVICEHND_PRIO
137 #define DF_INOS_GINDEVICEHND_PRIO 1
138 #endif
139#else
140 /* GinLink slave */
141 #ifndef DF_INOS_GINDEVICEHND_PRIO
142 #define DF_INOS_GINDEVICEHND_PRIO 5
143 #endif
144#endif
145
146// --- MovePath related defines ------------------------------------------------
147
151#ifndef DF_INOS_MOVEPATH_MAX_AXES
152#define DF_INOS_MOVEPATH_MAX_AXES 4
156#endif
160#ifndef DF_INOS_MOVEPATH_MAX_POINTS
161#define DF_INOS_MOVEPATH_MAX_POINTS 512
162#endif
166#ifndef DF_INOS_MOVEPATH_MAX_HELPERS
167#define DF_INOS_MOVEPATH_MAX_HELPERS 4
168#endif
172#ifndef DF_INOS_MOVEPATH_CMD_QUEUE_SIZE
173#define DF_INOS_MOVEPATH_CMD_QUEUE_SIZE 32
174#endif
178#ifndef DF_INOS_MOVEPATH_MAX_STRING_LENGTH
179#define DF_INOS_MOVEPATH_MAX_STRING_LENGTH 63
180#endif
181//
182// --- Nurbs curve related defines ---------------------------------------------
183
187#ifndef DF_INOS_NURBSCURVE_MAX_DEGREE
188#define DF_INOS_NURBSCURVE_MAX_DEGREE 5
189#endif
195#ifndef DF_INOS_NURBSCURVE_INTERPOLATION_POINTS
196#define DF_INOS_NURBSCURVE_INTERPOLATION_POINTS 8
197#endif
198//
199// --- Indel image related defines ---------------------------------------------
200
204#ifndef DF_INOS_IMAGE_MAX_SIZE
205#define DF_INOS_IMAGE_MAX_SIZE (1024*1024)
206#endif
210#ifndef DF_INOS_IMAGE_MIN_SIZE
211#define DF_INOS_IMAGE_MIN_SIZE (1024)
212#endif
213
214//
215// --- McRobot related defines -------------------------------------------------
221#ifndef DF_INOS_MCDATA_MAX_SIZE
222#define DF_INOS_MCDATA_MAX_SIZE 256 // max data size
223#endif
224
225//
226// --- McTarget related defines ------------------------------------------------
231#ifndef DF_INOS_MCTARGET_PARAM
232#define DF_INOS_MCTARGET_PARAM "Flags=Msg Qsz=1024"
233#endif
234
235//
236// --- Multi core related defines ----------------------------------------------
237
241#ifndef DF_INOS_TIMING_CHECKS_CORELOCK_MAX_TIME_US
242// set to "15us" by default
243#define DF_INOS_TIMING_CHECKS_CORELOCK_MAX_TIME_US 15
244#endif
245
246//
247// --- Disable IRQ time debugging defines --------------------------------------
248
252#ifndef DF_INOS_TIMINIG_CHECKS_DISABLEINTERRUPTS_MAX_TIME_US
253// set to "15us" by default
254#define DF_INOS_TIMINIG_CHECKS_DISABLEINTERRUPTS_MAX_TIME_US 15
255#endif
256
257//
258// --- suspend time check debugging defines ------------------------------------
259
263#ifndef DF_INOS_TIMINIG_CHECKS_SUSPEND_MAX_TIME_US
264// set to "1000us" by default
265#define DF_INOS_TIMINIG_CHECKS_SUSPEND_MAX_TIME_US 1000
266#endif
267
268// --- ethernet frame capturing ------------------------------------------------
269
273#ifndef DF_INOS_ETHERNET_FRAME_CAPTURE_BUFFER_SIZE
274#define DF_INOS_ETHERNET_FRAME_CAPTURE_BUFFER_SIZE (2048*1024)
275#endif
289#ifndef DF_INOS_ETHERNET_FRAME_CAPTURE_SNAP_LENGTH
290#define DF_INOS_ETHERNET_FRAME_CAPTURE_SNAP_LENGTH 1522
291#endif
298#ifndef DF_INOS_ETHERNET_FRAME_CAPTURE_OPTIONS
299#define DF_INOS_ETHERNET_FRAME_CAPTURE_OPTIONS 0x00000001
300#endif
307#ifndef DF_INOS_ETHERNET_FRAME_CAPTURE_FILTER_PORT_TCP
308#define DF_INOS_ETHERNET_FRAME_CAPTURE_FILTER_PORT_TCP 0
309#endif
310#ifndef DF_INOS_ETHERNET_FRAME_CAPTURE_FILTER_PORT_UDP
311#define DF_INOS_ETHERNET_FRAME_CAPTURE_FILTER_PORT_UDP 0
312#endif
313//
314
315// --- CAN bus frame capturing ------------------------------------------------
316
320#ifndef DF_INOS_CAN_FRAME_CAPTURE_BUFFER_SIZE
321#define DF_INOS_CAN_FRAME_CAPTURE_BUFFER_SIZE (2048*1024)
322#endif
327#ifndef DF_INOS_CAN_FRAME_CAPTURE_SNAP_LENGTH
328#define DF_INOS_CAN_FRAME_CAPTURE_SNAP_LENGTH 16
329#endif
336#ifndef DF_INOS_CAN_FRAME_CAPTURE_OPTIONS
337#define DF_INOS_CAN_FRAME_CAPTURE_OPTIONS 0x00000001
338#endif
339//
340
341// --- interrupt handling ------------------------------------------------------
342
346#ifndef DF_INOS_IRQ_PRIO_HIGHEST
347#define DF_INOS_IRQ_PRIO_HIGHEST 0
348#endif
352#ifndef DF_INOS_FIQ_PRIO_LOWEST
353#define DF_INOS_FIQ_PRIO_LOWEST 0
354#endif
355
363#ifndef DF_INOS_IRQ_LEGACY_MODE_DEFAULT
364#define DF_INOS_IRQ_LEGACY_MODE_DEFAULT false
365#endif
366
367// --- JSON image parser ------------------------------------------------------
368
372#ifndef DF_INOS_JSON_MAX_TOKENS
373#define DF_INOS_JSON_MAX_TOKENS 1024
374#endif
375
376// --- INOS bus ----------------------------------------------------------------
377
382#ifndef DF_INOS_BUS_MAX_SUB_CYCLES
383#define DF_INOS_BUS_MAX_SUB_CYCLES 8
384#endif
385
386// --- INCO logger (Varlog) ----------------------------------------------------
387
391#ifndef DF_DATA_LOGGER_MAX_CHANNELS
392#define DF_DATA_LOGGER_MAX_CHANNELS 128
393#endif
394
395// --- CINOSTaskEx related -----------------------------------------------------
396
402#ifndef DF_INOS_TASKEXMSGPARAM_MAX_SIZE
403#define DF_INOS_TASKEXMSGPARAM_MAX_SIZE 1024
404#endif
405
412#ifndef DF_INOS_STRINGPARAM_MAX_SIZE
413#define DF_INOS_STRINGPARAM_MAX_SIZE 512
414#endif
415
416//------------------------------------------------------------------------------
417// KERNEL defines
418//------------------------------------------------------------------------------
419
423#ifndef DF_INOS_BOOT_STACK_SIZE
424#define DF_INOS_BOOT_STACK_SIZE 65536
425#endif
426
430#ifndef DF_INOS_BOOT_MEMORY_SIZE
431#if defined(INOS_CPU_LX2XX0A) || defined(INOS_CPU_LS1046A)
432#define DF_INOS_BOOT_MEMORY_SIZE (65536*4)
433#else
434#define DF_INOS_BOOT_MEMORY_SIZE 65536
435#endif
436#endif
437
442#ifndef DF_INOS_MAX_TASKS
443#define DF_INOS_MAX_TASKS 256
444#endif
445
450#ifndef DF_INOS_MAX_HANDLERS_1MS
451#define DF_INOS_MAX_HANDLERS_1MS 256
452#endif
453
457#ifndef DF_INOS_MAX_BUS_HOOKS
458#define DF_INOS_MAX_BUS_HOOKS 1024
459#endif
460
464#ifndef DF_INOS_MAX_BUS_HOOK_CATEGORIES
465#define DF_INOS_MAX_BUS_HOOK_CATEGORIES 4
466#endif
467
468//------------------------------------------------------------------------------
469// Base axis limit checker defines
470//------------------------------------------------------------------------------
474#ifndef DF_INOS_BASE_AXIS_LIMIT_CHECK_V_TOLERANCE
475#define DF_INOS_BASE_AXIS_LIMIT_CHECK_V_TOLERANCE REAL64(1.0001)
476#endif
477
481#ifndef DF_INOS_BASE_AXIS_LIMIT_CHECK_A_TOLERANCE
482#define DF_INOS_BASE_AXIS_LIMIT_CHECK_A_TOLERANCE REAL64(1.01)
483#endif
484
488#ifndef DF_INOS_BASE_AXIS_LIMIT_CHECK_J_TOLERANCE
489#define DF_INOS_BASE_AXIS_LIMIT_CHECK_J_TOLERANCE REAL64(2.0)
490#endif
491
492//------------------------------------------------------------------------------
493// Memory layout defines
494//------------------------------------------------------------------------------
495
500#ifndef DF_INOS_SDRAM_SIZE_CORE0
501#define DF_INOS_SDRAM_SIZE_CORE0 (128*1024*1024)
502#endif
503
507#ifndef INOS_BASE_ADDRESS
508#define INOS_BASE_ADDRESS 0
509#endif
510
514#ifndef DF_INOS_IMAGE_LOAD_MAX_SIZE
515#define DF_INOS_IMAGE_LOAD_MAX_SIZE (32*1024*1024)
516#endif
517
518//------------------------------------------------------------------------------
519// fieldbus defines
520//------------------------------------------------------------------------------
521
525#ifndef DF_INOS_BUS_INFO_MAX_HOOKS
526#define DF_INOS_BUS_INFO_MAX_HOOKS 128
527#endif
528
529//------------------------------------------------------------------------------
530// desktop defines
531//------------------------------------------------------------------------------
532
537#ifndef DF_INOS_DESKTOP_RAM_SIZE
538#define DF_INOS_DESKTOP_RAM_SIZE 256
539#endif
540
541//------------------------------------------------------------------------------
542// INCO defines
543//------------------------------------------------------------------------------
544
548#ifndef DF_INCO_MAX_FRAMES_DYN
549#define DF_INCO_MAX_FRAMES_DYN 1024
550#endif
551
559#ifndef DF_INCO_FEATURES_DIS
560#define DF_INCO_FEATURES_DIS 0x00000000
561#endif
562
568#ifndef DF_INCO_DEFAULT_RETRIES
569#define DF_INCO_DEFAULT_RETRIES 3
570#endif
571
577#ifndef DF_INCO_DEFAULT_TIMEOUT
578#define DF_INCO_DEFAULT_TIMEOUT 400
579#endif
580
585#ifndef DF_INCO_FRAMEPOOL_BACKTRACE
586#define DF_INCO_FRAMEPOOL_BACKTRACE 0
587#endif
588
594#ifndef DF_INCO_FRAMEPOOL_BACKTRACE_LIMIT
595#define DF_INCO_FRAMEPOOL_BACKTRACE_LIMIT 32
596#endif
597
607#ifndef DF_INOS_DESKTOP_CUSTOM_MAIN
608#define DF_INOS_DESKTOP_CUSTOM_MAIN 0
609#endif
610
611//------------------------------------------------------------------------------
612// INCOV defines
613//------------------------------------------------------------------------------
614
643#ifndef DF_INCOV_DISPATCHER_PRIO
644#define DF_INCOV_DISPATCHER_PRIO DF_INOS_TASK_PRIO_COMMUNICATION_LOWEST
645#endif
646
647//------------------------------------------------------------------------------
648// end of file
649//------------------------------------------------------------------------------
650
651#endif // INC_INOSDEFAULT_H