mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
sem:remove sem default protocl
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -278,7 +278,6 @@ static int load_bcm4343x_firmware(FAR const struct btuart_lowerhalf_s *lower)
|
||||
lower->rxenable(lower, true);
|
||||
|
||||
nxsem_init(&rxsem, 0, 0);
|
||||
nxsem_set_protocol(&rxsem, SEM_PRIO_NONE);
|
||||
|
||||
/* It is possible this could fail if modem is already at high speed, so we
|
||||
* can safely ignore error return value.
|
||||
|
||||
@@ -1163,12 +1163,6 @@ FAR struct bcmf_dev_s *bcmf_allocate_device(void)
|
||||
goto exit_free_priv;
|
||||
}
|
||||
|
||||
if ((ret = nxsem_set_protocol(&priv->control_timeout, SEM_PRIO_NONE)) !=
|
||||
OK)
|
||||
{
|
||||
goto exit_free_priv;
|
||||
}
|
||||
|
||||
/* Init scan timeout timer */
|
||||
|
||||
priv->scan_status = BCMF_SCAN_DISABLED;
|
||||
|
||||
@@ -875,11 +875,6 @@ static int bcmf_bus_gspi_initialize(FAR struct bcmf_dev_s *priv,
|
||||
goto exit_free_bus;
|
||||
}
|
||||
|
||||
if ((ret = nxsem_set_protocol(&gbus->thread_signal, SEM_PRIO_NONE)) != OK)
|
||||
{
|
||||
goto exit_free_bus;
|
||||
}
|
||||
|
||||
/* Register sdio bus */
|
||||
|
||||
priv->bus = &gbus->bus;
|
||||
|
||||
@@ -693,11 +693,6 @@ static int bcmf_bus_sdio_initialize(FAR struct bcmf_dev_s *priv,
|
||||
goto exit_free_bus;
|
||||
}
|
||||
|
||||
if ((ret = nxsem_set_protocol(&sbus->thread_signal, SEM_PRIO_NONE)) != OK)
|
||||
{
|
||||
goto exit_free_bus;
|
||||
}
|
||||
|
||||
/* Configure hardware */
|
||||
|
||||
bcmf_board_initialize(sbus->minor);
|
||||
|
||||
@@ -1250,7 +1250,6 @@ XBEEHANDLE xbee_init(FAR struct spi_dev_s *spi,
|
||||
nxmutex_init(&priv->atquery_lock);
|
||||
nxmutex_init(&priv->tx_lock);
|
||||
nxsem_init(&priv->txdone_sem, 0, 0);
|
||||
nxsem_set_protocol(&priv->txdone_sem, SEM_PRIO_NONE);
|
||||
|
||||
ieee802154_primitivepool_initialize();
|
||||
|
||||
@@ -1540,8 +1539,6 @@ int xbee_atquery(FAR struct xbee_priv_s *priv, FAR const char *atcommand)
|
||||
*/
|
||||
|
||||
nxsem_init(&priv->atresp_sem, 0, 0);
|
||||
nxsem_set_protocol(&priv->atresp_sem, SEM_PRIO_NONE);
|
||||
|
||||
do
|
||||
{
|
||||
/* There is a note in the XBee datasheet: Once you issue a WR command,
|
||||
|
||||
@@ -1284,7 +1284,6 @@ int xbee_netdev_register(XBEEHANDLE xbee)
|
||||
|
||||
priv->xd_eventpending = false;
|
||||
nxsem_init(&priv->xd_eventsem, 0, 0);
|
||||
nxsem_set_protocol(&priv->xd_eventsem, SEM_PRIO_NONE);
|
||||
|
||||
sq_init(&priv->primitive_queue);
|
||||
|
||||
|
||||
@@ -1483,7 +1483,6 @@ int nrf24l01_register(FAR struct spi_dev_s *spi,
|
||||
|
||||
nxmutex_init(&dev->devlock);
|
||||
nxsem_init(&dev->sem_tx, 0, 0);
|
||||
nxsem_set_protocol(&dev->sem_tx, SEM_PRIO_NONE);
|
||||
|
||||
#ifdef CONFIG_WL_NRF24L01_RXSUPPORT
|
||||
if ((rx_fifo = kmm_malloc(CONFIG_WL_NRF24L01_RXFIFO_LEN)) == NULL)
|
||||
@@ -1498,7 +1497,6 @@ int nrf24l01_register(FAR struct spi_dev_s *spi,
|
||||
|
||||
nxmutex_init(&dev->lock_fifo);
|
||||
nxsem_init(&dev->sem_rx, 0, 0);
|
||||
nxsem_set_protocol(&dev->sem_rx, SEM_PRIO_NONE);
|
||||
#endif
|
||||
|
||||
/* Configure IRQ pin (falling edge) */
|
||||
|
||||
Reference in New Issue
Block a user