mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
at86rf2xx: Set page 2 by default on AT86RF212B
Page 2 is O-QPSK 100 kbit/s or 250 kbit/s, which matches the bandwidth provided in the 2.4 GHz band, at the cost of receiver sensitivity. The previous default, page 0, provides only 20 kbit/s in channel 0, and 40 kbit/s in channels 1-10, and should be used in specific applications where the radio environment requires the maximum receiver sensitivity and noise resilience.
This commit is contained in:
parent
4947e8a8aa
commit
6b2bfe18e9
@ -98,7 +98,7 @@ void at86rf2xx_reset(at86rf2xx_t *dev)
|
||||
at86rf2xx_reg_write(dev, AT86RF2XX_REG__TRX_CTRL_2,
|
||||
AT86RF2XX_TRX_CTRL_2_MASK__RX_SAFE_MODE);
|
||||
#ifdef MODULE_AT86RF212B
|
||||
at86rf2xx_set_page(dev, 0);
|
||||
at86rf2xx_set_page(dev, AT86RF2XX_DEFAULT_PAGE);
|
||||
#endif
|
||||
|
||||
/* don't populate masked interrupt flags to IRQ_STATUS register */
|
||||
|
@ -57,10 +57,13 @@ extern "C" {
|
||||
#define AT86RF2XX_MIN_CHANNEL (IEEE802154_CHANNEL_MIN_SUBGHZ)
|
||||
#define AT86RF2XX_MAX_CHANNEL (IEEE802154_CHANNEL_MAX_SUBGHZ)
|
||||
#define AT86RF2XX_DEFAULT_CHANNEL (IEEE802154_DEFAULT_SUBGHZ_CHANNEL)
|
||||
/* Page 2 is O-QPSK 100 kbit/s (channel 0), or 250 kbit/s (channels 1-10) */
|
||||
#define AT86RF2XX_DEFAULT_PAGE (2)
|
||||
#else
|
||||
#define AT86RF2XX_MIN_CHANNEL (IEEE802154_CHANNEL_MIN)
|
||||
#define AT86RF2XX_MAX_CHANNEL (IEEE802154_CHANNEL_MAX)
|
||||
#define AT86RF2XX_DEFAULT_CHANNEL (IEEE802154_DEFAULT_CHANNEL)
|
||||
/* Only page 0 is supported in the 2.4 GHz band */
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user