mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
Remove dangling whitespace at the end of lines
This commit is contained in:
@@ -217,7 +217,7 @@ static const struct ieee802154_radioops_s at86rf23x_devops =
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: at86rf23x_lock
|
* Name: at86rf23x_lock
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ struct mrf24j40_txdesc_s
|
|||||||
struct mrf24j40_radio_s
|
struct mrf24j40_radio_s
|
||||||
{
|
{
|
||||||
struct ieee802154_radio_s radio; /* The public device instance */
|
struct ieee802154_radio_s radio; /* The public device instance */
|
||||||
FAR struct ieee802154_radiocb_s *radiocb; /* Registered callbacks */
|
FAR struct ieee802154_radiocb_s *radiocb; /* Registered callbacks */
|
||||||
|
|
||||||
/* Low-level MCU-specific support */
|
/* Low-level MCU-specific support */
|
||||||
|
|
||||||
@@ -310,7 +310,7 @@ static int mrf24j40_txnotify_csma(FAR struct ieee802154_radio_s *radio)
|
|||||||
* 2. When new TX data is available (mrf24j40_txnotify_csma), and
|
* 2. When new TX data is available (mrf24j40_txnotify_csma), and
|
||||||
* 3. After a TX timeout to restart the sending process
|
* 3. After a TX timeout to restart the sending process
|
||||||
* (mrf24j40_txtimeout_csma).
|
* (mrf24j40_txtimeout_csma).
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* radio - Reference to the radio driver state structure
|
* radio - Reference to the radio driver state structure
|
||||||
*
|
*
|
||||||
@@ -329,7 +329,7 @@ static void mrf24j40_dopoll_csma(FAR void *arg)
|
|||||||
/* Get exclusive access to the driver */
|
/* Get exclusive access to the driver */
|
||||||
|
|
||||||
while (sem_wait(&dev->exclsem) != 0) { }
|
while (sem_wait(&dev->exclsem) != 0) { }
|
||||||
|
|
||||||
/* If this a CSMA transaction and we have room in the CSMA fifo */
|
/* If this a CSMA transaction and we have room in the CSMA fifo */
|
||||||
|
|
||||||
if (!dev->csma_desc.busy)
|
if (!dev->csma_desc.busy)
|
||||||
@@ -401,7 +401,7 @@ static int mrf24j40_txnotify_gts(FAR struct ieee802154_radio_s *radio)
|
|||||||
* 2. When new TX data is available (mrf24j40_txnotify_gts), and
|
* 2. When new TX data is available (mrf24j40_txnotify_gts), and
|
||||||
* 3. After a TX timeout to restart the sending process
|
* 3. After a TX timeout to restart the sending process
|
||||||
* (mrf24j40_txtimeout_gts).
|
* (mrf24j40_txtimeout_gts).
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* arg - Reference to the radio driver state structure
|
* arg - Reference to the radio driver state structure
|
||||||
*
|
*
|
||||||
@@ -440,7 +440,7 @@ static void mrf24j40_dopoll_gts(FAR void *arg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sem_post(&dev->exclsem);
|
sem_post(&dev->exclsem);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -754,7 +754,7 @@ static int mrf24j40_getchannel(FAR struct mrf24j40_radio_s *dev,
|
|||||||
FAR uint8_t *chan)
|
FAR uint8_t *chan)
|
||||||
{
|
{
|
||||||
*chan = dev->channel;
|
*chan = dev->channel;
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1369,7 +1369,7 @@ static int mrf24j40_csma_setup(FAR struct mrf24j40_radio_s *dev,
|
|||||||
* Name: mrf24j40_gts_setup
|
* Name: mrf24j40_gts_setup
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Setup a GTS transaction in one of the GTS FIFOs
|
* Setup a GTS transaction in one of the GTS FIFOs
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
@@ -1435,7 +1435,7 @@ static int mrf24j40_setup_fifo(FAR struct mrf24j40_radio_s *dev,
|
|||||||
{
|
{
|
||||||
mrf24j40_setreg(dev->spi, fifo_addr++, frame->io_data[ret]);
|
mrf24j40_setreg(dev->spi, fifo_addr++, frame->io_data[ret]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1764,7 +1764,7 @@ FAR struct ieee802154_radio_s *mrf24j40_init(FAR struct spi_dev_s *spi,
|
|||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Attach irq */
|
/* Attach irq */
|
||||||
|
|
||||||
if (lower->attach(lower, mrf24j40_interrupt, dev) != OK)
|
if (lower->attach(lower, mrf24j40_interrupt, dev) != OK)
|
||||||
|
|||||||
@@ -167,10 +167,10 @@
|
|||||||
|
|
||||||
/* RXMCR bits */
|
/* RXMCR bits */
|
||||||
|
|
||||||
#define MRF24J40_RXMCR_PROMI (1 << 0) /* Enable promisc mode (rx all valid packets) */
|
#define MRF24J40_RXMCR_PROMI (1 << 0) /* Enable promisc mode (rx all valid packets) */
|
||||||
#define MRF24J40_RXMCR_ERRPKT 0x02 /* Do not check CRC */
|
#define MRF24J40_RXMCR_ERRPKT 0x02 /* Do not check CRC */
|
||||||
#define MRF24J40_RXMCR_COORD 0x04 /* Enable coordinator mode ??? DIFFERENCE ??? - not used in datasheet! */
|
#define MRF24J40_RXMCR_COORD 0x04 /* Enable coordinator mode ??? DIFFERENCE ??? - not used in datasheet! */
|
||||||
#define MRF24J40_RXMCR_PANCOORD 0x08 /* Enable PAN coordinator mode ??? DIFFERENCE ??? */
|
#define MRF24J40_RXMCR_PANCOORD 0x08 /* Enable PAN coordinator mode ??? DIFFERENCE ??? */
|
||||||
#define MRF24J40_RXMCR_NOACKRSP 0x20 /* Enable auto ACK when a packet is rxed */
|
#define MRF24J40_RXMCR_NOACKRSP 0x20 /* Enable auto ACK when a packet is rxed */
|
||||||
|
|
||||||
/* TXMCR bits */
|
/* TXMCR bits */
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -162,18 +162,18 @@ struct ieee802154_netradio_s
|
|||||||
* identical members but with a different name. */
|
* identical members but with a different name. */
|
||||||
|
|
||||||
#ifdef CONFIG_IEEE802154_RANGING
|
#ifdef CONFIG_IEEE802154_RANGING
|
||||||
#define IEEE802154_TXDESC_FIELDS \
|
#define IEEE802154_TXDESC_FIELDS \
|
||||||
uint8_t handle; \
|
uint8_t handle; \
|
||||||
uint32_t timestamp; \
|
uint32_t timestamp; \
|
||||||
uint8_t status;
|
uint8_t status;
|
||||||
#else
|
#else
|
||||||
#define IEEE802154_TXDESC_FIELDS \
|
#define IEEE802154_TXDESC_FIELDS \
|
||||||
uint8_t handle; \
|
uint8_t handle; \
|
||||||
uint32_t timestamp; \
|
uint32_t timestamp; \
|
||||||
uint8_t status;
|
uint8_t status;
|
||||||
bool rng_rcvd; \
|
bool rng_rcvd; \
|
||||||
uint32_t rng_counter_start; \
|
uint32_t rng_counter_start; \
|
||||||
uint32_t rng_counter_stop; \
|
uint32_t rng_counter_stop; \
|
||||||
uint32_t rng_tracking_interval; \
|
uint32_t rng_tracking_interval; \
|
||||||
uint32_t rng_offset;\
|
uint32_t rng_offset;\
|
||||||
uint8_t rng_fom;
|
uint8_t rng_fom;
|
||||||
|
|||||||
+1426
-1426
File diff suppressed because it is too large
Load Diff
@@ -105,7 +105,7 @@ int mac802154_ioctl(MACHANDLE mac, int cmd, unsigned long arg);
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int mac802154_get_mhrlen(MACHANDLE mac,
|
int mac802154_get_mhrlen(MACHANDLE mac,
|
||||||
FAR struct ieee802154_frame_meta_s *meta);
|
FAR struct ieee802154_frame_meta_s *meta);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
@@ -446,7 +446,7 @@ static ssize_t mac802154dev_write(FAR struct file *filep,
|
|||||||
wlerr("ERROR: TX meta-data is invalid");
|
wlerr("ERROR: TX meta-data is invalid");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
iob->io_offset = ret;
|
iob->io_offset = ret;
|
||||||
iob->io_len = iob->io_offset;
|
iob->io_len = iob->io_offset;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user