forked from epics_driver_modules/motorBase
Document configuration for both IPAC R2.5 and R2.6.
This commit is contained in:
@@ -1,19 +1,90 @@
|
||||
# This configures the MPF server stuff.
|
||||
###############################################################################
|
||||
# "#!" marks lines that can be uncommented.
|
||||
|
||||
### START of IPAC R2.5 and below ##############################################
|
||||
#
|
||||
# Initialize IP carrier
|
||||
|
||||
# For MVME162 and MVME172 CPU boards with IP slots.
|
||||
# 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")
|
||||
|
||||
carrier = "ipac"
|
||||
ipacAddCarrier(&ipmv162, "A:l=3,3 m=0xe0000000,64")
|
||||
# For SBS VIPC616-01 IP carrier board. A32 and A24 examples follow:
|
||||
#!carrier = "VIPC616_01"
|
||||
# - A32 addressing.
|
||||
# - default I/O Base Address (0x6000).
|
||||
# - IP modules occupy 32MB of memory from 0x9000 0000 to 0x91FF FFFF.
|
||||
# - IP module A at 0x90000000,
|
||||
# module B at 0x90800000,
|
||||
# module C at 0x91000000,
|
||||
# module D at 0x91800000
|
||||
#!ipacAddCarrier(&vipc616_01, "6000,A0000000")
|
||||
|
||||
tyGSOctalDrv(1)
|
||||
taskDelay(10)
|
||||
octalUart0 = tyGSOctalModuleInit("GSIP_OCTAL232", 0x80, 0, 0)
|
||||
taskDelay(3)
|
||||
port0 = tyGSOctalDevCreate("/tyGS/0/0",octalUart0,0,1000,1000)
|
||||
tyGSOctalConfig(port0,9600,'N',1,8,'N')
|
||||
initTtyVxPort("tyGS00","/tyGS/0/0",9600,1000)
|
||||
initSerialServer("a-Serial[0]","tyGS00",100,2,"")
|
||||
# - A24 addressing.
|
||||
# - default I/O Base Address (0x6000).
|
||||
# - default IP module base address at 0x00D0 0000
|
||||
# occupies 512 bytes of memory from 0x00D0 0000 to 0x00D0 01FF.
|
||||
# - IP module A at 0x0x00D0 007F,
|
||||
# module B at 0x0x00D0 0100,
|
||||
# module C at 0x0x00D0 017F,
|
||||
# module D at 0x0x00D0 01FF
|
||||
#!ipacAddCarrier(&vipc616_01, "0x6000,D00000,128")
|
||||
|
||||
# initIpacCarrier(const char *carrierName, int carrierNum)
|
||||
#!initIpacCarrier(carrier, 0)
|
||||
#!ipacReport(2)
|
||||
|
||||
###############################################################################
|
||||
# Initialize Octal UART module
|
||||
#initOctalUART("moduleName","carrierName","carrierSite",nports,intVec)
|
||||
#!initOctalUART("octalUart0",carrier,"IP_a",8,100)
|
||||
#!initOctalUART("octalUart1",carrier,"IP_b",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("UART0[0]","octalUart0",0, 9600,"N",1,8,"N")
|
||||
#!initOctalUARTPort("UART0[1]","octalUart0",1, 9600,"N",1,8,"N")
|
||||
#!initOctalUARTPort("UART0[2]","octalUart0",2, 9600,"N",1,8,"N")
|
||||
#!initOctalUARTPort("UART0[3]","octalUart0",3, 9600,"N",1,8,"N")
|
||||
|
||||
#!initOctalUARTPort("UART1[0]","octalUart1",0, 9600,"N",1,8,"N")
|
||||
#!initOctalUARTPort("UART1[1]","octalUart1",1, 9600,"N",1,8,"N")
|
||||
#!initOctalUARTPort("UART1[2]","octalUart1",2, 9600,"N",1,8,"N")
|
||||
#!initOctalUARTPort("UART1[3]","octalUart1",3, 9600,"N",1,8,"N")
|
||||
### END of IPAC R2.5 and below ##############################################
|
||||
|
||||
### IPAC R2.6 and above #######################################################
|
||||
# IPAC R2.6 and above
|
||||
# Initialize IP carrier
|
||||
# ipacAddVIPC616_01(const char *cardParams);
|
||||
# ipacAddMVME162(const char *cardParams)
|
||||
#!ipacAddVIPC616_01("6000,A0000000")
|
||||
#!ipacAddMVME162("A:l=3,3 m=0xA0000000,64")
|
||||
|
||||
#!tyGSOctalDrv(1)
|
||||
|
||||
#!octalUart0 = tyGSOctalModuleInit("GSIP_OCTAL232", 0x80, 0, 0)
|
||||
|
||||
#!port0 = tyGSOctalDevCreate("/tyGS/0/0",octalUart0,0,1000,1000)
|
||||
#!port1 = tyGSOctalDevCreate("/tyGS/0/1",octalUart0,1,1000,1000)
|
||||
|
||||
#!tyGSOctalConfig(port0,9600,'N',1,8,'N')
|
||||
#!tyGSOctalConfig(port1,9600,'N',1,8,'N')
|
||||
|
||||
#!initTtyVxPort("UART0[0]","/tyGS/0/0",9600,1000)
|
||||
#!initTtyVxPort("UART0[1]","/tyGS/0/1",9600,1000)
|
||||
###############################################################################
|
||||
|
||||
|
||||
#!initSerialServer("a-Serial[0]","UART0[0]",100,2,"")
|
||||
#!initSerialServer("a-Serial[1]","UART0[1]",100,2,"")
|
||||
|
||||
|
||||
@@ -1,19 +1,90 @@
|
||||
# This configures the MPF server stuff.
|
||||
###############################################################################
|
||||
# "#!" marks lines that can be uncommented.
|
||||
|
||||
### START of IPAC R2.5 and below ##############################################
|
||||
#
|
||||
# Initialize IP carrier
|
||||
|
||||
# For MVME162 and MVME172 CPU boards with IP slots.
|
||||
# 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")
|
||||
|
||||
carrier = "ipac"
|
||||
ipacAddCarrier(&ipmv162, "A:l=3,3 m=0xe0000000,64")
|
||||
# For SBS VIPC616-01 IP carrier board. A32 and A24 examples follow:
|
||||
#!carrier = "VIPC616_01"
|
||||
# - A32 addressing.
|
||||
# - default I/O Base Address (0x6000).
|
||||
# - IP modules occupy 32MB of memory from 0x9000 0000 to 0x91FF FFFF.
|
||||
# - IP module A at 0x90000000,
|
||||
# module B at 0x90800000,
|
||||
# module C at 0x91000000,
|
||||
# module D at 0x91800000
|
||||
#!ipacAddCarrier(&vipc616_01, "6000,A0000000")
|
||||
|
||||
tyGSOctalDrv(1)
|
||||
taskDelay(10)
|
||||
octalUart0 = tyGSOctalModuleInit("GSIP_OCTAL232", 0x80, 0, 0)
|
||||
taskDelay(3)
|
||||
port0 = tyGSOctalDevCreate("/tyGS/0/0",octalUart0,0,1000,1000)
|
||||
tyGSOctalConfig(port0,9600,'N',1,8,'N')
|
||||
initTtyVxPort("tyGS00","/tyGS/0/0",9600,1000)
|
||||
initSerialServer("a-Serial[0]","tyGS00",100,2,"")
|
||||
# - A24 addressing.
|
||||
# - default I/O Base Address (0x6000).
|
||||
# - default IP module base address at 0x00D0 0000
|
||||
# occupies 512 bytes of memory from 0x00D0 0000 to 0x00D0 01FF.
|
||||
# - IP module A at 0x0x00D0 007F,
|
||||
# module B at 0x0x00D0 0100,
|
||||
# module C at 0x0x00D0 017F,
|
||||
# module D at 0x0x00D0 01FF
|
||||
#!ipacAddCarrier(&vipc616_01, "0x6000,D00000,128")
|
||||
|
||||
# initIpacCarrier(const char *carrierName, int carrierNum)
|
||||
#!initIpacCarrier(carrier, 0)
|
||||
#!ipacReport(2)
|
||||
|
||||
###############################################################################
|
||||
# Initialize Octal UART module
|
||||
#initOctalUART("moduleName","carrierName","carrierSite",nports,intVec)
|
||||
#!initOctalUART("octalUart0",carrier,"IP_a",8,100)
|
||||
#!initOctalUART("octalUart1",carrier,"IP_b",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("UART0[0]","octalUart0",0, 9600,"N",1,8,"N")
|
||||
#!initOctalUARTPort("UART0[1]","octalUart0",1, 9600,"N",1,8,"N")
|
||||
#!initOctalUARTPort("UART0[2]","octalUart0",2, 9600,"N",1,8,"N")
|
||||
#!initOctalUARTPort("UART0[3]","octalUart0",3, 9600,"N",1,8,"N")
|
||||
|
||||
#!initOctalUARTPort("UART1[0]","octalUart1",0, 9600,"N",1,8,"N")
|
||||
#!initOctalUARTPort("UART1[1]","octalUart1",1, 9600,"N",1,8,"N")
|
||||
#!initOctalUARTPort("UART1[2]","octalUart1",2, 9600,"N",1,8,"N")
|
||||
#!initOctalUARTPort("UART1[3]","octalUart1",3, 9600,"N",1,8,"N")
|
||||
### END of IPAC R2.5 and below ##############################################
|
||||
|
||||
### IPAC R2.6 and above #######################################################
|
||||
# IPAC R2.6 and above
|
||||
# Initialize IP carrier
|
||||
# ipacAddVIPC616_01(const char *cardParams);
|
||||
# ipacAddMVME162(const char *cardParams)
|
||||
#!ipacAddVIPC616_01("6000,A0000000")
|
||||
#!ipacAddMVME162("A:l=3,3 m=0xA0000000,64")
|
||||
|
||||
#!tyGSOctalDrv(1)
|
||||
|
||||
#!octalUart0 = tyGSOctalModuleInit("GSIP_OCTAL232", 0x80, 0, 0)
|
||||
|
||||
#!port0 = tyGSOctalDevCreate("/tyGS/0/0",octalUart0,0,1000,1000)
|
||||
#!port1 = tyGSOctalDevCreate("/tyGS/0/1",octalUart0,1,1000,1000)
|
||||
|
||||
#!tyGSOctalConfig(port0,9600,'N',1,8,'N')
|
||||
#!tyGSOctalConfig(port1,9600,'N',1,8,'N')
|
||||
|
||||
#!initTtyVxPort("UART0[0]","/tyGS/0/0",9600,1000)
|
||||
#!initTtyVxPort("UART0[1]","/tyGS/0/1",9600,1000)
|
||||
###############################################################################
|
||||
|
||||
|
||||
#!initSerialServer("a-Serial[0]","UART0[0]",100,2,"")
|
||||
#!initSerialServer("a-Serial[1]","UART0[1]",100,2,"")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user