Hello, I need to transmit packets at specific time, so I have to use a different peripheral for triggers. I tried to put the runcmd of cmdPropTxAdv on an interrupt handler to send a packet once an event happen. Somehow it didnt work. Is what I aim possible or did I just do it wrong?
void UART0IntHandler(void) { uint8_t testval; if (HWREG(UART0_BASE + UART_O_MIS)&UART_MIS_RXMIS) { HWREG(GPIO_BASE + GPIO_O_DOUTTGL31_0) = (0x80); testval = UARTCharGet(UART0_BASE); HWREG(UART0_BASE + UART_O_ICR)|=UART_ICR_RXIC; } else if(HWREG(UART0_BASE + UART_O_MIS)&UART_MIS_TXMIS) { HWREG(GPIO_BASE + GPIO_O_DOUTTGL31_0) = (0x80); RF_EventMask terminationReason = RF_runCmd(rfHandle, (RF_Op*)& RF_cmdPropTxAdv, RF_PriorityNormal, NULL, 0); RF_yield(rfHandle); HWREG(UART0_BASE + UART_O_ICR)|=UART_ICR_TXIC; }