CC1312可以实现中断发送数据吗?为什么我进了按键中断后发送数据失败,在中断里出不来了。
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.
CC1312可以实现中断发送数据吗?为什么我进了按键中断后发送数据失败,在中断里出不来了。
\brief Sends a Packet with blocking call. //! //! This function is a blocking call to send a packet. If the Tx is //! successfully scheduled then the function will block until the Tx is //! complete. //! //! \param txPacket The descriptor for the packet to be Tx'ed. //! //! \return ::EasyLink_Status // //***************************************************************************** extern EasyLink_Status EasyLink_transmit(EasyLink_TxPacket *txPacket);
看下说明,应该是和中断冲突了,造成了阻塞
可以先用EasyLink_Status EasyLink_transmitAsync试试,RTOS中使用中断影响比较大
//***************************************************************************** // //! \brief Sends a Packet with non blocking call. //! //! This function is a non blocking call to send a packet. If the Tx is //! successfully scheduled then the callback will be call once the Tx is //! complete. //! //! \param txPacket The descriptor for the packet to be Tx'ed. //! \param cb The tx done function pointer. //! //! \return ::EasyLink_Status // //***************************************************************************** extern EasyLink_Status EasyLink_transmitAsync(EasyLink_TxPacket *txPacket, EasyLink_TxDoneCb cb);