This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc3200 TIME_OUT 中断函数,使用UDP 发送数据

请教一下大家,

在定时器的溢出中断中,是没有办法使用 udp 的,  但也不能使用队列(osi_MsgQWrite), 但Uart的中断里面 可以写队列。。

想请教一下, 我想在 溢出中断产生时, 将数据通过udp 发送出去。该怎么做?

目前的思路是 溢出中断后,将数据放入队列,在task中 发送出去。  但定时器溢出中断 不能写队列。

  • 中断里面设标志位,可以做吗

  • 请参考例程idle_profile里面的

    //*****************************************************************************
    //
    //! \brief callback function for timer interrupt handler
    //!
    //! \param vParam is a general void pointer (not used here)
    //!
    //! \return None
    //
    //*****************************************************************************
    void TimerCallback(void *vParam)
    {
    unsigned char ucQueueMsg = 1;
    osi_MsgQWrite(&g_tWkupSignalQueue, &ucQueueMsg, OSI_NO_WAIT);
    return;
    }

    你看看这个是不是你所需要的?