09 2019 档案
摘要:此项目源码下载地址:https://github.com/lizhiqiang0204/TabControl-page-separation 每个页面的按键处理事件直接对应该页面下的cs文件 MainWindow.xaml文件如下 Page1.xaml文件如下: Page1.xaml.cs文件如下
阅读全文
摘要:配置STM32CubeMX如下 生成的Keil代码的创建启动定时器如下 定时器的回调函数如下 运行结果如下,每隔一秒打印一次 定时器的创建函数osTimerCreate(osTimer(myTimer01), osTimerPeriodic, NULL);的第二个参数
阅读全文
摘要:osThreadState osState2;//自定义一个线程的状态 osThreadState 系统枚举定义如下: typedef enum { osThreadRunning = 0x0, /* A thread is querying the state of itself, so must be running. */ osThreadReady = 0x1 , /* The threa
阅读全文