摘要: QDomElement flowChart = listFlowChart.at(0).toElement(); QDomNodeList listAllNodes = flowChart.childNodes(); while (listAllNodes.size() > 0) { flowCha 阅读全文
posted @ 2023-01-04 15:07 ai在西元前 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 产生一个2K 占空比50%的pwm波形 // PWM输出 PB1 void PwmPhyConfig() { //此部分需手动修改 IO 口设置 RCC->APB1ENR |= 1<<1; //TIM3 时钟使能 RCC->AHB1ENR |= 1<<1; //使能 PORTB 时钟 GPIOB-> 阅读全文
posted @ 2022-11-15 16:46 ai在西元前 阅读(52) 评论(0) 推荐(0) 编辑
摘要: //头文件 #include <QTimer> public: QTimer *timer0 = new QTimer(this); private slots: void Timer0CallBack(void); //源文件 timer0->start(1000); connect(timer0 阅读全文
posted @ 2022-11-14 15:36 ai在西元前 阅读(17) 评论(0) 推荐(0) 编辑
摘要: #include <QDateTime> // 获取当前日期和时间 QString MyQtInterFace::GetCurTimeDate() { QString datetime = QDateTime::currentDateTime().toString("yyyy-MM-dd dddd 阅读全文
posted @ 2022-11-14 14:54 ai在西元前 阅读(77) 评论(0) 推荐(0) 编辑
摘要: #include "BspPhy.h" //**************************************************************** //****** 串口GPIO初始化函数 //****** 输入参数: 无 //****** 返回值: 无 //******* 阅读全文
posted @ 2022-11-12 18:58 ai在西元前 阅读(36) 评论(0) 推荐(0) 编辑
摘要: #include "BspPhy.h" uint8_t TimerFlag; //**************************************************************** //****** 定时器6初始化函数 //****** 输入参数: 无 //****** 阅读全文
posted @ 2022-11-12 17:15 ai在西元前 阅读(110) 评论(0) 推荐(0) 编辑
摘要: #include "BspPhy.h" static uint32_t fac_us; static uint32_t fac_ms; void PhyDelayInit() { SysTick->CTRL |= SYSTICK_CLOCK_SOURCE_AHBCLK_NODIV; fac_us = 阅读全文
posted @ 2022-11-12 16:34 ai在西元前 阅读(73) 评论(0) 推荐(0) 编辑
摘要: //**************************************************************** //****** 连接LED指示灯 GPIO初始化函数 PA4 //****** 输入参数: 无 //****** 返回值: 无 //**************** 阅读全文
posted @ 2022-11-12 15:33 ai在西元前 阅读(45) 评论(0) 推荐(0) 编辑
摘要: QPushButton *but = new QPushButton(this); //创建按钮对象 but->resize(100,30); //设置大小 but->move(200,200); //移动位置 but->setText("按钮"); //设置显示字符 //1.设置显示字符大小,2. 阅读全文
posted @ 2022-11-12 12:52 ai在西元前 阅读(49) 评论(0) 推荐(0) 编辑
摘要: //源文件 //使能CPU的L1-Cache void Cache_Enable(void) { SCB_EnableICache(); // 使能I-Cache SCB_EnableDCache(); // 使能D-Cache SCB->CACR|=1<<2; // 强制D-Cache透写,如不开 阅读全文
posted @ 2022-11-12 12:18 ai在西元前 阅读(54) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示