configure
changeset 664 a03f0aa7d219
parent 629 b9274b595650
child 673 f511d955ac30
equal deleted inserted replaced
663:70fc3603e36f 664:a03f0aa7d219
    29 MAX_CAN_BUS_ID=1
    29 MAX_CAN_BUS_ID=1
    30 
    30 
    31 # max bytes to transmit by SDO Put 4 if you only support expedited transfert.
    31 # max bytes to transmit by SDO Put 4 if you only support expedited transfert.
    32 #For a normal transfert, (usually for a string), put the maximum string size to transfer.
    32 #For a normal transfert, (usually for a string), put the maximum string size to transfer.
    33 SDO_MAX_LENGTH_TRANSFERT=32
    33 SDO_MAX_LENGTH_TRANSFERT=32
       
    34 
       
    35 # For block transfert, number of segments transmitted at once.
       
    36 # SDO_BLOCK_SIZE CAN frames must fit into the CAN Tx buffer
       
    37 SDO_BLOCK_SIZE=16
    34 
    38 
    35 # Number of SDO from differents nodes that the node can manage concurrently.
    39 # Number of SDO from differents nodes that the node can manage concurrently.
    36 #for a slave node, usually put 1.
    40 #for a slave node, usually put 1.
    37 SDO_MAX_SIMULTANEOUS_TRANSFERTS=4
    41 SDO_MAX_SIMULTANEOUS_TRANSFERTS=4
    38 
    42 
   120 	--enable-lss-fs)	ENABLE_LSS_FS=1;
   124 	--enable-lss-fs)	ENABLE_LSS_FS=1;
   121 			echo "On user request: LSS FastScan service enabled";;
   125 			echo "On user request: LSS FastScan service enabled";;
   122 	--debug=*)	DEBUG=$optarg;;
   126 	--debug=*)	DEBUG=$optarg;;
   123 	--MAX_CAN_BUS_ID=*)	MAX_CAN_BUS_ID=$optarg;;
   127 	--MAX_CAN_BUS_ID=*)	MAX_CAN_BUS_ID=$optarg;;
   124 	--SDO_MAX_LENGTH_TRANSFERT=*)	SDO_MAX_LENGTH_TRANSFERT=$optarg;;
   128 	--SDO_MAX_LENGTH_TRANSFERT=*)	SDO_MAX_LENGTH_TRANSFERT=$optarg;;
       
   129 	--SDO_BLOCK_SIZE=*)	SDO_BLOCK_SIZE=$optarg;;
   125 	--SDO_MAX_SIMULTANEOUS_TRANSFERTS=*)	SDO_MAX_SIMULTANEOUS_TRANSFERTS=$optarg;;
   130 	--SDO_MAX_SIMULTANEOUS_TRANSFERTS=*)	SDO_MAX_SIMULTANEOUS_TRANSFERTS=$optarg;;
   126 	--NMT_MAX_NODE_ID=*)	NMT_MAX_NODE_ID=$optarg;;
   131 	--NMT_MAX_NODE_ID=*)	NMT_MAX_NODE_ID=$optarg;;
   127 	--SDO_TIMEOUT_MS=*)	SDO_TIMEOUT_MS=$optarg;;
   132 	--SDO_TIMEOUT_MS=*)	SDO_TIMEOUT_MS=$optarg;;
   128 	--CANOPEN_BIG_ENDIAN=*)	CANOPEN_BIG_ENDIAN=$optarg;;
   133 	--CANOPEN_BIG_ENDIAN=*)	CANOPEN_BIG_ENDIAN=$optarg;;
   129 	--MAX_NB_TIMER=*) MAX_NB_TIMER=$optarg;;
   134 	--MAX_NB_TIMER=*) MAX_NB_TIMER=$optarg;;
   177 		echo	"               \"MSG\" print messages content, to stdout"
   182 		echo	"               \"MSG\" print messages content, to stdout"
   178 		echo
   183 		echo
   179 		echo	"Stack compilation constants"
   184 		echo	"Stack compilation constants"
   180 		echo	" --MAX_CAN_BUS_ID [=1] Number of can bus to use"
   185 		echo	" --MAX_CAN_BUS_ID [=1] Number of can bus to use"
   181 		echo	" --SDO_MAX_LENGTH_TRANSFERT [=32] max bytes to transmit by SDO"
   186 		echo	" --SDO_MAX_LENGTH_TRANSFERT [=32] max bytes to transmit by SDO"
       
   187 		echo	" --SDO_BLOCK_SIZE [=16] max CAN frames transmitted at once for block transfert"
   182 		echo	" --SDO_MAX_SIMULTANEOUS_TRANSFERTS [=4] Number of SDO that the node can manage concurrently"
   188 		echo	" --SDO_MAX_SIMULTANEOUS_TRANSFERTS [=4] Number of SDO that the node can manage concurrently"
   183 		echo	" --NMT_MAX_NODE_ID [=128] can be reduced to gain memory on small network"
   189 		echo	" --NMT_MAX_NODE_ID [=128] can be reduced to gain memory on small network"
   184 		echo	" --SDO_TIMEOUT_MS [=3000] Timeout in milliseconds for SDO (None to disable the feature)"
   190 		echo	" --SDO_TIMEOUT_MS [=3000] Timeout in milliseconds for SDO (None to disable the feature)"
   185 		echo	" --EMCY_MAX_ERRORS [=8] Max number of active errors managed in error_data structure"
   191 		echo	" --EMCY_MAX_ERRORS [=8] Max number of active errors managed in error_data structure"
   186 		echo	" --LSS_TIMEOUT_MS [=1000] Timeout in milliseconds for LSS services."
   192 		echo	" --LSS_TIMEOUT_MS [=1000] Timeout in milliseconds for LSS services."
   655 echo "#define _CONFIG_H_" >> include/config.h
   661 echo "#define _CONFIG_H_" >> include/config.h
   656 echo "" >> include/config.h
   662 echo "" >> include/config.h
   657 for i in \
   663 for i in \
   658  MAX_CAN_BUS_ID\
   664  MAX_CAN_BUS_ID\
   659  SDO_MAX_LENGTH_TRANSFERT\
   665  SDO_MAX_LENGTH_TRANSFERT\
       
   666  SDO_BLOCK_SIZE\
   660  SDO_MAX_SIMULTANEOUS_TRANSFERTS\
   667  SDO_MAX_SIMULTANEOUS_TRANSFERTS\
   661  NMT_MAX_NODE_ID\
   668  NMT_MAX_NODE_ID\
   662  SDO_TIMEOUT_MS\
   669  SDO_TIMEOUT_MS\
   663  MAX_NB_TIMER\
   670  MAX_NB_TIMER\
   664  CANOPEN_BIG_ENDIAN\
   671  CANOPEN_BIG_ENDIAN\