mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
Correct mimatched function prototype.
This commit is contained in:
+25
-29
@@ -163,42 +163,40 @@ static void nrf24l01_lock(FAR struct spi_dev_s *spi);
|
|||||||
static void nrf24l01_unlock(FAR struct spi_dev_s *spi);
|
static void nrf24l01_unlock(FAR struct spi_dev_s *spi);
|
||||||
|
|
||||||
static uint8_t nrf24l01_access(FAR struct nrf24l01_dev_s *dev,
|
static uint8_t nrf24l01_access(FAR struct nrf24l01_dev_s *dev,
|
||||||
nrf24l01_access_mode_t mode, uint8_t cmd, uint8_t *buf, int length);
|
nrf24l01_access_mode_t mode, uint8_t cmd, uint8_t *buf,
|
||||||
|
int length);
|
||||||
static uint8_t nrf24l01_flush_rx(FAR struct nrf24l01_dev_s *dev);
|
static uint8_t nrf24l01_flush_rx(FAR struct nrf24l01_dev_s *dev);
|
||||||
static uint8_t nrf24l01_flush_tx(FAR struct nrf24l01_dev_s *dev);
|
static uint8_t nrf24l01_flush_tx(FAR struct nrf24l01_dev_s *dev);
|
||||||
|
|
||||||
/* Read register from nrf24 */
|
/* Read register from nrf24 */
|
||||||
|
|
||||||
static uint8_t nrf24l01_readreg(FAR struct nrf24l01_dev_s *dev, uint8_t reg,
|
static uint8_t nrf24l01_readreg(FAR struct nrf24l01_dev_s *dev, uint8_t reg,
|
||||||
uint8_t *value, int len);
|
FAR uint8_t *value, int len);
|
||||||
|
|
||||||
/* Read single byte value from a register of nrf24 */
|
/* Read single byte value from a register of nrf24 */
|
||||||
|
|
||||||
static uint8_t nrf24l01_readregbyte(FAR struct nrf24l01_dev_s *dev,
|
static uint8_t nrf24l01_readregbyte(FAR struct nrf24l01_dev_s *dev,
|
||||||
uint8_t reg);
|
uint8_t reg);
|
||||||
|
static void nrf24l01_writeregbyte(FAR struct nrf24l01_dev_s *dev,
|
||||||
static void nrf24l01_writeregbyte(FAR struct nrf24l01_dev_s *dev, uint8_t reg,
|
uint8_t reg, uint8_t value);
|
||||||
uint8_t value);
|
static uint8_t nrf24l01_setregbit(FAR struct nrf24l01_dev_s *dev,
|
||||||
|
uint8_t reg, uint8_t value, bool set);
|
||||||
static uint8_t nrf24l01_setregbit(FAR struct nrf24l01_dev_s *dev, uint8_t reg,
|
static void nrf24l01_tostate(FAR struct nrf24l01_dev_s *dev,
|
||||||
uint8_t value, bool set);
|
nrf24l01_state_t state);
|
||||||
|
static int nrf24l01_irqhandler(FAR int irq, FAR void *context,
|
||||||
static void nrf24l01_tostate(FAR struct nrf24l01_dev_s *dev, nrf24l01_state_t state);
|
FAR void *arg);
|
||||||
|
static inline int nrf24l01_attachirq(FAR struct nrf24l01_dev_s *dev,
|
||||||
static int nrf24l01_irqhandler(FAR int irq, FAR void *context, FAR void *arg);
|
xcpt_t isr, FAR void *arg);
|
||||||
|
static int dosend(FAR struct nrf24l01_dev_s *dev, FAR const uint8_t *data,
|
||||||
static inline int nrf24l01_attachirq(FAR struct nrf24l01_dev_s *dev, xcpt_t isr);
|
size_t datalen);
|
||||||
|
|
||||||
static int dosend(FAR struct nrf24l01_dev_s *dev, FAR const uint8_t *data, size_t datalen);
|
|
||||||
|
|
||||||
static int nrf24l01_unregister(FAR struct nrf24l01_dev_s *dev);
|
static int nrf24l01_unregister(FAR struct nrf24l01_dev_s *dev);
|
||||||
|
|
||||||
#ifdef CONFIG_WL_NRF24L01_RXSUPPORT
|
#ifdef CONFIG_WL_NRF24L01_RXSUPPORT
|
||||||
|
|
||||||
void fifoput(struct nrf24l01_dev_s *dev, uint8_t pipeno, uint8_t *buffer, uint8_t buflen);
|
void fifoput(struct nrf24l01_dev_s *dev, uint8_t pipeno,
|
||||||
|
FAR uint8_t *buffer, uint8_t buflen);
|
||||||
uint8_t fifoget(struct nrf24l01_dev_s *dev, uint8_t *buffer, uint8_t buflen, uint8_t *pipeno);
|
uint8_t fifoget(struct nrf24l01_dev_s *dev, FAR uint8_t *buffer,
|
||||||
|
uint8_t buflen, FAR uint8_t *pipeno);
|
||||||
static void nrf24l01_worker(FAR void *arg);
|
static void nrf24l01_worker(FAR void *arg);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
@@ -206,15 +204,13 @@ static void nrf24l01_worker(FAR void *arg);
|
|||||||
/* POSIX API */
|
/* POSIX API */
|
||||||
|
|
||||||
static int nrf24l01_open(FAR struct file *filep);
|
static int nrf24l01_open(FAR struct file *filep);
|
||||||
|
|
||||||
static int nrf24l01_close(FAR struct file *filep);
|
static int nrf24l01_close(FAR struct file *filep);
|
||||||
|
static ssize_t nrf24l01_read(FAR struct file *filep, FAR char *buffer,
|
||||||
static ssize_t nrf24l01_read(FAR struct file *filep, FAR char *buffer, size_t buflen);
|
size_t buflen);
|
||||||
|
static ssize_t nrf24l01_write(FAR struct file *filep,
|
||||||
static ssize_t nrf24l01_write(FAR struct file *filep, FAR const char *buffer, size_t buflen);
|
FAR const char *buffer, size_t buflen);
|
||||||
|
static int nrf24l01_ioctl(FAR struct file *filep, int cmd,
|
||||||
static int nrf24l01_ioctl(FAR struct file *filep, int cmd, unsigned long arg);
|
unsigned long arg);
|
||||||
|
|
||||||
static int nrf24l01_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
static int nrf24l01_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||||
bool setup);
|
bool setup);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user