Skip to content

drivers/at86rf2xx: add missing handler for TRX24_RX_START interrupt#16038

Merged
benpicco merged 1 commit intoRIOT-OS:masterfrom
chudov:drivers/at86rf2xx_netdev.c/trx24_rx_start_isr_fix
Feb 18, 2021
Merged

drivers/at86rf2xx: add missing handler for TRX24_RX_START interrupt#16038
benpicco merged 1 commit intoRIOT-OS:masterfrom
chudov:drivers/at86rf2xx_netdev.c/trx24_rx_start_isr_fix

Conversation

@chudov
Copy link
Contributor

@chudov chudov commented Feb 17, 2021

Contribution description

Missing ISR's added to at86rf2xx_netdev.c for ATmegaRFA1/RFR2:

  • TRX24_PLL_LOCK
  • TRX24_PLL_UNLOCK
  • TRX24_RX_START
  • TRX24_CCA_ED_DONE
  • TRX24_AWAKE

Testing procedure

Add one of ATMegaRFR2-based boards to BOARD_WHITELIST in tests\gnrc_gomach\Makefile or in examples\gnrc_networking_mac:
BOARD_WHITELIST := samr21-xpro iotlab-m3 derfmega256

Run the test on 2 boards. Check that board with ATMegaRFR2 shows received packets

Issues/PRs references

Fixes #12857

@herjulf
Copy link
Contributor

herjulf commented Feb 17, 2021

Verified PR on avr-rss2 (atmega256rfr2) with gnrc_networking_mac.
Yes it might be good to populate the missing ISR to avoid hard debugged oopses. This bug have been lurking for quite some time. Good work all!

@benpicco benpicco added Area: drivers Area: Device drivers CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) labels Feb 17, 2021
@benpicco benpicco self-requested a review February 17, 2021 19:36
@kaspar030 kaspar030 added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Feb 17, 2021
@kaspar030
Copy link
Contributor

(pushed back in CI queue as this would fail anyway without #16042)

@maribu maribu added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Feb 17, 2021
@maribu
Copy link
Member

maribu commented Feb 17, 2021

#16042 is now in. I restarted the build so that it indeed gets build on top of this, otherwise it would fail again.

Copy link
Contributor

@benpicco benpicco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!
I'll see if we can get rid of irq_status and directly call netdev_event as a follow-up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: drivers Area: Device drivers CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

examples/gnrc_networking_mac broken on ATmega

5 participants