jinxueHou

导航

#

[置顶] STM32移植RT-Thread的串口只能接收一个字节数据的问题

摘要: 打开设备的函数参数要与注册设备函数参数要一致, 注册设备的函数及其参数如下: /* register UART1 device */ rt_hw_serial_register(&serial1, "uart1", RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLA... 阅读全文

posted @ 2016-12-15 14:42 梦想,飞翔 阅读(2245) 评论(0) 推荐(0) 编辑

2018年8月15日 #

STM32CubeMX HAL库串口+DMA数据发送不定长度数据接收

摘要: 参考资料:1、ST HAL库官网资料 2、https://blog.csdn.net/u014470361/article/details/79206352#comments 一、STM32CubeMX配置外部时钟 注意在进行外部时钟配置时,即“High Speed Clock”和“Low Spee 阅读全文

posted @ 2018-08-15 19:11 梦想,飞翔 阅读(11195) 评论(0) 推荐(0) 编辑

2017年4月14日 #

用MPLAB IDE编程时,软件总是弹出一个窗口提示: “the extended cpu mode configuration bit is enabled,but the program that was loaded was not built using extended cpu instructions. therefore,your code may not work properly

摘要: 用MPLAB IDE编程时,软件总是弹出一个窗口提示:“the extended cpu mode configuration bit is enabled,but the program that was loaded was not built using extended cpu instru 阅读全文

posted @ 2017-04-14 13:11 梦想,飞翔 阅读(495) 评论(0) 推荐(0) 编辑

2016年12月13日 #

STM32移植RT-Thread后的串口在调试助手上出现:(mq != RT_NULL) assert failed at rt_mq_recv:2085和串口只发送数据不能接收数据问题

摘要: STM32移植RT-Thread后的串口在调试助手上出现:(mq != RT_NULL) assert failed at rt_mq_recv:2085的问题讨论:http://www.rt-thread.org/phpBB3/topic2577.html, STM32串口只发送数据,不能接收数据的问题讨论:http://www.rt-thread.org/phpBB3/topic2577-... 阅读全文

posted @ 2016-12-13 16:26 梦想,飞翔 阅读(1030) 评论(0) 推荐(0) 编辑

2016年12月12日 #

switch的经典引用

摘要: #include int main(void) { int i; do{ printf("按1,流量查询\n"); printf("按2,人工服务\n"); printf("按3,密码修改\n"); printf("按4,套餐信息\n"); printf("按0,退出系统\n"); ... 阅读全文

posted @ 2016-12-12 23:20 梦想,飞翔 阅读(395) 评论(0) 推荐(0) 编辑