Merge pull request #9577 from bergzand/pr/netdev/rem_default_tell_opts

drivers/radios: remove default event reporting flags
This commit is contained in:
Peter Kietzmann 2018-07-17 13:47:33 +02:00 committed by GitHub
commit 2bc48c3953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 19 deletions

View File

@ -81,11 +81,6 @@ void at86rf2xx_reset(at86rf2xx_t *dev)
/* set default options */ /* set default options */
at86rf2xx_set_option(dev, AT86RF2XX_OPT_AUTOACK, true); at86rf2xx_set_option(dev, AT86RF2XX_OPT_AUTOACK, true);
at86rf2xx_set_option(dev, AT86RF2XX_OPT_CSMA, true); at86rf2xx_set_option(dev, AT86RF2XX_OPT_CSMA, true);
at86rf2xx_set_option(dev, AT86RF2XX_OPT_TELL_RX_START, false);
at86rf2xx_set_option(dev, AT86RF2XX_OPT_TELL_RX_END, true);
#ifdef MODULE_NETSTATS_L2
at86rf2xx_set_option(dev, AT86RF2XX_OPT_TELL_TX_END, true);
#endif
/* enable safe mode (protect RX FIFO until reading data starts) */ /* enable safe mode (protect RX FIFO until reading data starts) */
at86rf2xx_reg_write(dev, AT86RF2XX_REG__TRX_CTRL_2, at86rf2xx_reg_write(dev, AT86RF2XX_REG__TRX_CTRL_2,

View File

@ -65,12 +65,6 @@ int cc2420_init(cc2420_t *dev)
/* set default options */ /* set default options */
cc2420_set_option(dev, CC2420_OPT_AUTOACK, true); cc2420_set_option(dev, CC2420_OPT_AUTOACK, true);
cc2420_set_option(dev, CC2420_OPT_CSMA, true); cc2420_set_option(dev, CC2420_OPT_CSMA, true);
cc2420_set_option(dev, CC2420_OPT_TELL_TX_START, true);
cc2420_set_option(dev, CC2420_OPT_TELL_RX_END, true);
#ifdef MODULE_NETSTATS_L2
cc2420_set_option(dev, CC2420_OPT_TELL_RX_END, true);
#endif
/* change default RX bandpass filter to 1.3uA (as recommended) */ /* change default RX bandpass filter to 1.3uA (as recommended) */
reg = cc2420_reg_read(dev, CC2420_REG_RXCTRL1); reg = cc2420_reg_read(dev, CC2420_REG_RXCTRL1);

View File

@ -111,9 +111,6 @@ void kw2xrf_reset_phy(kw2xrf_t *dev)
kw2xrf_set_power_mode(dev, KW2XRF_AUTODOZE); kw2xrf_set_power_mode(dev, KW2XRF_AUTODOZE);
kw2xrf_set_sequence(dev, dev->idle_state); kw2xrf_set_sequence(dev, dev->idle_state);
kw2xrf_set_option(dev, KW2XRF_OPT_TELL_RX_START, true);
kw2xrf_set_option(dev, KW2XRF_OPT_TELL_RX_END, true);
kw2xrf_set_option(dev, KW2XRF_OPT_TELL_TX_END, true);
kw2xrf_clear_dreg_bit(dev, MKW2XDM_PHY_CTRL2, MKW2XDM_PHY_CTRL2_SEQMSK); kw2xrf_clear_dreg_bit(dev, MKW2XDM_PHY_CTRL2, MKW2XDM_PHY_CTRL2_SEQMSK);
kw2xrf_enable_irq_b(dev); kw2xrf_enable_irq_b(dev);

View File

@ -68,11 +68,6 @@ void mrf24j40_reset(mrf24j40_t *dev)
mrf24j40_set_option(dev, NETDEV_IEEE802154_SRC_MODE_LONG, true); mrf24j40_set_option(dev, NETDEV_IEEE802154_SRC_MODE_LONG, true);
mrf24j40_set_option(dev, NETDEV_IEEE802154_ACK_REQ, true); mrf24j40_set_option(dev, NETDEV_IEEE802154_ACK_REQ, true);
mrf24j40_set_option(dev, MRF24J40_OPT_CSMA, true); mrf24j40_set_option(dev, MRF24J40_OPT_CSMA, true);
mrf24j40_set_option(dev, MRF24J40_OPT_TELL_RX_START, false);
mrf24j40_set_option(dev, MRF24J40_OPT_TELL_RX_END, true);
#ifdef MODULE_NETSTATS_L2
mrf24j40_set_option(dev, MRF24J40_OPT_TELL_TX_END, true);
#endif
/* go into RX state */ /* go into RX state */
mrf24j40_reset_tasks(dev); mrf24j40_reset_tasks(dev);