CC3300: Eliminate some compile time warnings
This commit is contained in:
parent
dbc9d67b3a
commit
48d7930631
@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* drivers/wireless/cc3000.c
|
||||
*
|
||||
* Copyright (C) 2013-2014 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2013-2015 Gregory Nutt. All rights reserved.
|
||||
* Authors: Gregory Nutt <gnutt@nuttx.org>
|
||||
* David_s5 <david_s5@nscdg.com>
|
||||
*
|
||||
@ -719,7 +719,8 @@ static void * cc3000_worker(FAR void *arg)
|
||||
priv->state = eSPI_STATE_READ_READY;
|
||||
priv->rx_buffer.len = data_to_recv;
|
||||
|
||||
ret = mq_send(priv->queue, &priv->rx_buffer, sizeof(priv->rx_buffer), 1);
|
||||
ret = mq_send(priv->queue, (FAR const char *)&priv->rx_buffer,
|
||||
sizeof(priv->rx_buffer), 1);
|
||||
DEBUGASSERT(ret >= 0);
|
||||
UNUSED(ret);
|
||||
|
||||
@ -886,7 +887,7 @@ static int cc3000_open(FAR struct file *filep)
|
||||
*/
|
||||
|
||||
snprintf(queuename, QUEUE_NAMELEN, QUEUE_FORMAT, priv->minor);
|
||||
priv->queue = mq_open(queuename,O_WRONLY|O_CREAT, 0666, &attr);
|
||||
priv->queue = mq_open(queuename, O_WRONLY|O_CREAT, 0666, &attr);
|
||||
if (priv->queue < 0)
|
||||
{
|
||||
ret = -errno;
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**************************************************************************
|
||||
* drivers/wireless/cc3000/cc3000drv.c - Driver wrapper functions to
|
||||
* conntect nuttx to the TI CC3000
|
||||
* drivers/wireless/cc3000/cc3000drv.c
|
||||
* Driver wrapper functions to conntect nuttx to the TI CC3000
|
||||
*
|
||||
* Port to nuttx:
|
||||
* David Sidrane <david_s5@nscdg.com>
|
||||
@ -179,7 +179,8 @@ uint8_t *cc3000_wait(void)
|
||||
{
|
||||
DEBUGASSERT(spiconf.cc3000fd >= 0);
|
||||
|
||||
mq_receive(spiconf.queue, &spiconf.rx_buffer, sizeof(spiconf.rx_buffer), 0);
|
||||
mq_receive(spiconf.queue, (FAR char *)&spiconf.rx_buffer,
|
||||
sizeof(spiconf.rx_buffer), 0);
|
||||
return spiconf.rx_buffer.pbuffer;
|
||||
}
|
||||
|
||||
@ -206,7 +207,7 @@ static void *unsoliced_thread_func(void *parameter)
|
||||
|
||||
ioctl(spiconf.cc3000fd, CC3000IOC_GETQUESEMID, (unsigned long)&minor);
|
||||
snprintf(buff, QUEUE_NAMELEN, QUEUE_FORMAT, minor);
|
||||
spiconf.queue = mq_open(buff,O_RDONLY);
|
||||
spiconf.queue = mq_open(buff, O_RDONLY);
|
||||
DEBUGASSERT(spiconf.queue != (mqd_t) -1);
|
||||
DEBUGASSERT(SEM_NAMELEN == QUEUE_NAMELEN);
|
||||
snprintf(buff, SEM_NAMELEN, SEM_FORMAT, minor);
|
||||
@ -218,7 +219,7 @@ static void *unsoliced_thread_func(void *parameter)
|
||||
while (spiconf.run)
|
||||
{
|
||||
memset(&spiconf.rx_buffer,0,sizeof(spiconf.rx_buffer));
|
||||
nbytes = mq_receive(spiconf.queue, &spiconf.rx_buffer,
|
||||
nbytes = mq_receive(spiconf.queue, (FAR char *)&spiconf.rx_buffer,
|
||||
sizeof(spiconf.rx_buffer), 0);
|
||||
if (nbytes > 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user