altos: Execute self-test on MMA655X part
authorKeith Packard <keithp@keithp.com>
Sat, 21 Dec 2013 06:04:53 +0000 (22:04 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 21 Dec 2013 06:04:53 +0000 (22:04 -0800)
commit2a912dcde191e2f750845c464611641a5abdc28a
treecfca4531be3f87fc9a797964b14e583ba902f69c
parentb89fb51a963635e2effe3a31f803bfc29c2c46b7
altos: Execute self-test on MMA655X part

This doesn't check for fine calibration, just makes sure the part is
within the broad tolerances specified by the manufacturer. The subtle fix
here was actually getting reset working -- there was a typo in the
bitpattern definition which caused the reset to fail, making it hard
to self-test the part, as self-test is only valid before the part is running.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_mma655x.c
src/drivers/ao_mma655x.h