1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/at86rf2xx: add TX_START macro

This commit is contained in:
Jose Alamos 2022-11-24 17:20:15 +01:00
parent b6b8dc1958
commit 58ce0743c6
No known key found for this signature in database
GPG Key ID: F483EB800EF89DD9
2 changed files with 10 additions and 1 deletions

View File

@ -228,7 +228,7 @@ void at86rf2xx_reset(at86rf2xx_t *dev)
AT86RF2XX_IRQ_STATUS_MASK__TRX_END);
/* enable TX start interrupt for retry counter */
#ifdef AT86RF2XX_REG__IRQ_MASK1
#if AT86RF2XX_HAVE_TX_START_IRQ
at86rf2xx_reg_write(dev, AT86RF2XX_REG__IRQ_MASK1,
AT86RF2XX_IRQ_STATUS_MASK1__TX_START);
#endif

View File

@ -130,6 +130,15 @@ extern "C" {
#define AT86RF2XX_HAVE_RETRIES (0)
#endif
/**
* @brief TX Start IRQ
*/
#ifdef AT86RF2XX_REG__IRQ_MASK1
#define AT86RF2XX_HAVE_TX_START_IRQ (1)
#else
#define AT86RF2XX_HAVE_TX_START_IRQ (0)
#endif
/**
* @brief Random Number Generator
*