mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-06 08:37:31 +02:00
c8e942f9ee
- prod/atusb: added clock frequency test - prod/doc/setup.hmac: added GSL (libgsl) build dependency - prod/doc/setup.hmac: recommend use of NTP on the PC - prod/doc/test.hmac: added atusb to the clock frequency section
49 lines
477 B
Bash
Executable File
49 lines
477 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. ./Common
|
|
|
|
|
|
USB_ID=20b7:1540
|
|
CLOCK_DRIFT_PPM=50
|
|
|
|
|
|
enumerate()
|
|
{
|
|
step "Enumeration"
|
|
cmd "usbwait -t 5 $USB_ID && echo okay"
|
|
expect okay
|
|
}
|
|
|
|
|
|
led()
|
|
{
|
|
step "LED"
|
|
todo
|
|
}
|
|
|
|
|
|
gpio_usb()
|
|
{
|
|
step "GPIO scan"
|
|
todo
|
|
}
|
|
|
|
|
|
xtal_usb()
|
|
{
|
|
step "Crystal frequency"
|
|
cmd "$LOCAL_EXEC atrf-xtal -d $LOCAL_DUT -p $CLOCK_DRIFT_PPM"
|
|
expect_re ppm # we catch any problems via the exit code
|
|
}
|
|
|
|
|
|
begin usb.profile
|
|
enumerate
|
|
led
|
|
# power ?
|
|
gpio_usb
|
|
identify
|
|
xtal_usb
|
|
spectrum
|
|
transmit
|