diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-25 18:41:10 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-25 18:41:10 +0000 |
commit | 80d1c7ab4590471dca46d4ae7ae5d3211ad2cf8d (patch) | |
tree | e1361e761b01704d1ad41b9f89c9501a42610b4a /nuttx/drivers/wireless | |
parent | f5ab5978905faf5b9bd81c2c2463a25cd75325ae (diff) | |
download | px4-nuttx-80d1c7ab4590471dca46d4ae7ae5d3211ad2cf8d.tar.gz px4-nuttx-80d1c7ab4590471dca46d4ae7ae5d3211ad2cf8d.tar.bz2 px4-nuttx-80d1c7ab4590471dca46d4ae7ae5d3211ad2cf8d.zip |
Add support for the TI PGA11x amplifier/multiplexer
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4977 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/wireless')
-rwxr-xr-x | nuttx/drivers/wireless/cc1101/cc1101.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nuttx/drivers/wireless/cc1101/cc1101.c b/nuttx/drivers/wireless/cc1101/cc1101.c index a35575690..45faaecd2 100755 --- a/nuttx/drivers/wireless/cc1101/cc1101.c +++ b/nuttx/drivers/wireless/cc1101/cc1101.c @@ -308,7 +308,7 @@ struct cc1101_dev_s { void cc1101_access_begin(struct cc1101_dev_s * dev) { - SPI_LOCK(dev->spi, true); + (void)SPI_LOCK(dev->spi, true); SPI_SELECT(dev->spi, SPIDEV_WIRELESS, true); SPI_SETMODE(dev->spi, SPIDEV_MODE0); /* CPOL=0, CPHA=0 */ SPI_SETBITS(dev->spi, 8); @@ -318,11 +318,10 @@ void cc1101_access_begin(struct cc1101_dev_s * dev) void cc1101_access_end(struct cc1101_dev_s * dev) { SPI_SELECT(dev->spi, SPIDEV_WIRELESS, false); - SPI_LOCK(dev->spi, false); + (void)SPI_LOCK(dev->spi, false); } - /** CC1101 Access with Range Check * * \param dev CC1101 Private Structure |