summaryrefslogtreecommitdiff
path: root/devel/msp430-debug-stack/files/mspfet.conf
blob: f078a8592d4115b314d08803bcd79c326d096df0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Warning: Only a single instance of each FET product is supported
#

attach 20 {
	device-name		"umodem[0-9]+";
	match "vendor"		"0x2047";		# TI MSPBSL_STANDARD_USB_VID
        match "product"		"0x001(0|3|4)";		# Products: UIF eZ-FET MSP-FET
	match "interface"	"0";			# JTAG-Interface
	action "cd /dev; p=$product; dn=$device-name;			\
		un=$(sysctl -n dev.umodem.${dn#umodem}.ttyname);	\
		chmod 666 cua$un; ln -sf cua$un mspfet${p#0x}";
};

notify 20 {
	match "system"		"USB";
	match "subsystem"	"INTERFACE";
	match "type"		"DETACH";
	match "vendor"		"0x2047";		# TI MSPBSL_STANDARD_USB_VID
        match "product"		"0x001(0|3|4)";		# Products: UIF eZ-FET MSP-FET
	match "interface"	"0";			# JTAG-Interface
	action "p=$product; rm /dev/mspfet${p#0x}";
};