forked from epics_driver_modules/motorBase
31 lines
1.3 KiB
Batchfile
31 lines
1.3 KiB
Batchfile
# This configures the MPF server stuff. GPIB support is commented out, but can
|
|
# added by simply deleting the "# !GPIB! #" comments.
|
|
|
|
###############################################################################
|
|
# Initialize IP carrier
|
|
# ipacAddCarrier(ipac_carrier_t *pcarrier, char *cardParams)
|
|
# pcarrier - pointer to carrier driver structure
|
|
# cardParams - carrier-specific init parameters
|
|
|
|
carrier = "ipac"
|
|
ipacAddCarrier(&ipmv162, "A:l=3,3 m=0xe0000000,64;B:l=3,3 m=0xe0010000,64;C:l=3,3 m=0xe0020000,64;D:l=3,3 m=0xe0030000,64")
|
|
initIpacCarrier(carrier, 0)
|
|
|
|
###############################################################################
|
|
# Initialize Octal UART module
|
|
#initOctalUART("moduleName","carrierName","carrierSite",nports,intVec)
|
|
initOctalUART("octalUart0",carrier,"IP_a",8,100)
|
|
|
|
# initOctalUARTPort(char* portName,char* moduleName,int port,int baud,
|
|
# char* parity,int stop_bits,int bits_char,char* flow_control)
|
|
# 'baud' is the baud rate. 1200, 2400, 4800, 9600, 19200, 38400
|
|
# 'parity' is "E" for even, "O" for odd, "N" for none.
|
|
# 'bits_per_character' = {5,6,7,8}
|
|
# 'stop_bits' = {1,2}
|
|
# 'flow_control' is "N" for none, "H" for hardware
|
|
# Port 0 is Generic Serial Record
|
|
|
|
initOctalUARTPort("UART[0]","octalUart0",0, 9600,"N",1,8,"N")
|
|
initSerialServer("a-Serial[0]","UART[0]",1000,20,"\r",1)
|
|
|