mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user