rt_data_queue_push rt_data_queue_pop 延时 登录后复制rt_thread_sleep rt_thread_delay rt_thread_delay_until rt_thread_mdelay 注:源码中摘录,并无理论考证,更无实际验证 所有被禁止在中断中调用的函数都有个相似的特征 —— 它可能是阻塞的,导致中断无法短时间内返回;或者它想调用可能发生阻塞的 api 。
1. data_queue 是什么 data_queue 直接翻译过来是 数据队列。这个名字和 消息队列 很像。那么他们有...
3、接下来分析下音频发送及接收具体实现: a、发送部分是通过消息队列,相关代码在audio.c中实现(rt_data_queue_push、rt_data_queue_peak、rt_data_queue_pop),主要流程见下图: b、接收部分是通过pipe实现的(具体到代码在audio_pipe.c中),pipe由audio.c中创建,类型为循环覆盖(RT_PIPE_FLAG_FORCE_WR),接收的...
rt_data_queue_push rt_data_queue_pop rt_mp_alloc 哪些api 没有做到以上几点? 登录后复制``` rt_mutex_take rt_thread_sleep rt_thread_delay rt_thread_delay_until rt_thread_mdelay rt_wqueue_wait 笔者曾经在 gitee 上提交过一个 [issue]( https://gitee.com/rtthread/rt-thread/issues/I44JNS ...
[ipc] [dataqueue] 修复队列 pop 挂起的线程 push 无法恢复运行的错误 (RT-Thread#8839) Browse files 队列在 push 后查找挂起列表时使用了错误的挂起列表。 block (RT-Thread/rt-thread#9590, RT-Thread/rt-thread#8839) cc_packed (RT-Thread/rt-thread#8839) clk_update (RT-Thread/rt-thread#9580...
No complex configuration is needed, just connect your gaming PC or console to the special LAN port to give you a fast, stable connection that's always at the head of the queue. Lightning-Fast 2 Gbps Internet RT-AX86 Series is designed to break down all the barriers that can slow ...
mask = 1 << thread->current_priority;endif/* insert thread to schedule queue again */rt_...
const void *data_ptr, @@ -201,7 +201,7 @@ RTM_EXPORT(rt_data_queue_push); * @param timeout is the waiting time. * * @return Return the operation status. When the return value is RT_EOK, the operation is successful. * When the return value is RT_ETIMEOUT, it means the speci...
queue_push(HMI_LCD_Handler.HMI_LCD_U2_Buffer[i]); } /*重新打开DMA和空闲中断,进行新的一轮数据接收*/ __HAL_UART_ENABLE_IT(&huart2, UART_IT_IDLE); HAL_UART_Receive_DMA(&huart2, HMI_LCD_Handler.HMI_LCD_U2_Buffer, HMI_LCD_U2_BUFFER_SIZE); ...
queue_push(HMI_LCD_Handler.HMI_LCD_U2_Buffer[i]); } /*重新打开 DMA 和空闲中断,进行新的一轮数据接收*/ __HAL_UART_ENABLE_IT(&huart2, UART_IT_IDLE); HAL_UART_Receive_DMA(&huart2, HMI_LCD_Handler.HMI_LCD_U2_Buffer, HMI_LCD_U2_BUFFER_SIZE); ...