2011-04-20 14:13:27 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. ./Common
|
|
|
|
|
|
|
|
|
2011-05-28 13:03:20 +03:00
|
|
|
USB_ID=20b7:1540
|
2011-05-31 02:04:54 +03:00
|
|
|
CLOCK_DRIFT_PPM=50
|
2011-05-28 13:03:20 +03:00
|
|
|
|
|
|
|
|
2011-04-20 14:13:27 +03:00
|
|
|
enumerate()
|
|
|
|
{
|
|
|
|
step "Enumeration"
|
2011-05-28 13:03:20 +03:00
|
|
|
cmd "usbwait -t 5 $USB_ID && echo okay"
|
2011-05-18 03:58:09 +03:00
|
|
|
expect okay
|
2011-04-20 14:13:27 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
led()
|
|
|
|
{
|
|
|
|
step "LED"
|
|
|
|
todo
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
gpio_usb()
|
|
|
|
{
|
|
|
|
step "GPIO scan"
|
|
|
|
todo
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
xtal_usb()
|
|
|
|
{
|
|
|
|
step "Crystal frequency"
|
2011-05-31 02:04:54 +03:00
|
|
|
cmd "$LOCAL_EXEC atrf-xtal -d $LOCAL_DUT -p $CLOCK_DRIFT_PPM"
|
|
|
|
expect_re ppm # we catch any problems via the exit code
|
2011-04-20 14:13:27 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
begin usb.profile
|
|
|
|
enumerate
|
|
|
|
led
|
|
|
|
# power ?
|
|
|
|
gpio_usb
|
2011-05-18 03:58:09 +03:00
|
|
|
identify
|
2011-04-20 14:13:27 +03:00
|
|
|
xtal_usb
|
|
|
|
spectrum
|
|
|
|
transmit
|