diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-13 17:49:11 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-13 17:49:11 +0000 |
commit | 2f092ea7161261be3d79abcdfddd2348321a1dc6 (patch) | |
tree | 64641aec2e82266492bb42ad8be5efe6e603e30c /nuttx/drivers/input/tsc2007.c | |
parent | 13b1e4d5c583c69e93f52ada836aabad691e9fd3 (diff) | |
download | px4-nuttx-2f092ea7161261be3d79abcdfddd2348321a1dc6.tar.gz px4-nuttx-2f092ea7161261be3d79abcdfddd2348321a1dc6.tar.bz2 px4-nuttx-2f092ea7161261be3d79abcdfddd2348321a1dc6.zip |
Add a configuration for the lpc3152
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4043 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/input/tsc2007.c')
-rw-r--r-- | nuttx/drivers/input/tsc2007.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/drivers/input/tsc2007.c b/nuttx/drivers/input/tsc2007.c index 12f3dc9c3..718ec1045 100644 --- a/nuttx/drivers/input/tsc2007.c +++ b/nuttx/drivers/input/tsc2007.c @@ -455,8 +455,9 @@ static int tsc2007_transfer(FAR struct tsc2007_dev_s *priv, uint8_t cmd) return ret; } - /* Get the MS 12 bits from the first byte and the remaining LS 4 bits from - * the second byte. + /* Get the MS 8 bits from the first byte and the remaining LS 4 bits from + * the second byte. The valid range of data is then from 0 to 4095 with + * the LSB unit corresponding to Vref/4096. */ ret = (unsigned int)data12[0] << 4 | (unsigned int)data12[1] >> 4; |