06 2023 档案
摘要:Qt c++ 快速输出当前时间,精确到毫秒 一行: qDebug()<< QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss.zzz"); 多行: QTime current_time = QTime::currentTime();
阅读全文
摘要:Linux驱动基础开发 来源:http://www.linuxidc.com/Linux/2011-10/44721.htm Linux 设备驱动概述 目前,Linux软件工程师大致可分为两个层次: (1)Linux应用软件工程师(Application Software Engineer): 主要
阅读全文
摘要:I2C初始化 /* I2C2 init function */ void MX_I2C2_Init(void) { /* USER CODE BEGIN I2C2_Init 0 */ /* USER CODE END I2C2_Init 0 */ LL_I2C_InitTypeDef I2C_Ini
阅读全文
摘要:串口DMA接收数据,减少CPU占用 思路:DMA+空闲中断(无法确认数据帧结束)+循环缓存 DMA初始化 void DMA1_Stream_Config(DMA_Stream_TypeDef *DMA_Stream, uint32_t MemAddress, uint32_t ParAddress,
阅读全文