mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 02:13:33 +08:00
Add support for the TI PGA11x amplifier/multiplexer
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4977 7fd9a85b-ad96-42d3-883c-3090e2eb8679
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