Add a configuration for the lpc3152

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4043 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2011-10-13 17:49:11 +00:00
parent 43edab2dd8
commit 9f645b695e
52 changed files with 4948 additions and 25 deletions
+3 -2
View File
@@ -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;