Skip to content
Snippets Groups Projects
Unverified Commit 89f3240b authored by George Oikonomou's avatar George Oikonomou Committed by GitHub
Browse files

Merge pull request #638 from atiselsts/bugfix/cc26xx-rf-interrupt

CC26xx RF: in polling mode, disable the CPE0 radio interrupt completely
parents dc075b0c aedf05c2
No related branches found
No related tags found
No related merge requests found
......@@ -512,9 +512,13 @@ rf_core_setup_interrupts(void)
void
rf_core_cmd_done_en(bool fg)
{
uint32_t irq = fg ? IRQ_LAST_FG_COMMAND_DONE : IRQ_LAST_COMMAND_DONE;
uint32_t irq = 0;
const uint32_t enabled_irqs = rf_core_poll_mode ? ENABLED_IRQS_POLL_MODE : ENABLED_IRQS;
if(!rf_core_poll_mode) {
irq = fg ? IRQ_LAST_FG_COMMAND_DONE : IRQ_LAST_COMMAND_DONE;
}
HWREG(RFC_DBELL_NONBUF_BASE + RFC_DBELL_O_RFCPEIFG) = enabled_irqs;
HWREG(RFC_DBELL_NONBUF_BASE + RFC_DBELL_O_RFCPEIEN) = enabled_irqs | irq;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment