rt-thread
rt-thread copied to clipboard
RT-Thread is an open source IoT real-time operating system (RTOS).
## 拉取/合并请求描述:(PR description) [ 由于NXP网络问题,代替提交PR https://gitee.com/xinyigao/rt-thread-1170 ] 以下的内容不应该在提交PR时的message修改,修改下述message,PR会被直接关闭。请在提交PR后,浏览器查看PR并对以下检查项逐项check,没问题后逐条在页面上打钩。 The following content must not be changed in the submitted PR message. Otherwise, the PR will be closed immediately. After submitted PR,...
应用程序如果重新配置串口参数会调用 `static rt_err_t imxrt_configure(struct rt_serial_device *serial, struct serial_configure *cfg) { struct imxrt_uart *uart; lpuart_config_t config; RT_ASSERT(serial != RT_NULL); RT_ASSERT(cfg != RT_NULL); uart = rt_container_of(serial, struct imxrt_uart, serial); LPUART_GetDefaultConfig(&config); config.baudRate_Bps =...
CPK-RA6M4评估板结合FSP及RT-Thread Studio工具,可方便开发者对嵌入式系统应用程序进程开发。 在学习RT-Thread设备驱动时,注意到RT-Thread提供`rt_err_t rt_device_control(rt_device_t dev, rt_uint8_t cmd, void* arg);`API接口对看门狗溢出时间进行配置,所以在测试时设置了看门狗的溢出时间,当初始化配置FSP后,进行编译,却发现程序并没有按照所编写的代码在溢出时间后喂狗。 然而我在这里发现了问题: 点击打开drv_wdt.c(路径:/libraries/HAL_Drivers/drv_wdt.c),可以看到在设置看门狗超时时间时使用了break命令,因此我们用户设定的超时时间被过滤。 总结:在CPK-RA6M4中看门狗超时时间的设定是在FSP中完成初始化的,当然如果想在RT-Thread中设置,可选择修改drv_wdt.c中关于看门狗超时时间的相关代码。 
stm32f10xxx.h中,stm32f105/107系列支持otg芯片使用USB_OTG_FS,f103系列使用的是USB。 stm32f1xx_hal_pcd_ex.c描述定义了USB后可以使用HAL_PCDEx_PMAConfig这个函数。 但rt-thread的适配驱动中,usbd_config.h使用的确是USB的宏定义;drv_usbd.c的_init(rt_device_t device)函数中只要是stm32f1系列都是调用HAL_PCDEx_PMAConfig函数。 这就导致了F105、F107系列打开USB DEVICE设备后编译不通过,F103系列正常。
在4.1.1版本中,rt1170-evk使能SDRAM,在主函数中使用rt_malloc函数分配内存,系统卡住,代码如下: /* * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2019-05-06 tyustli first version * */ #include #include...
report in #4184 ## 拉取/合并请求描述:(PR description) [ 这段方括号里的内容是您**必须填写并替换掉**的,否则PR不可能被合并。**方括号外面的内容不需要修改,但请仔细阅读。** The content in this square bracket must be filled in and replaced, otherwise, PR can not be merged. The contents outside square...
[ refer to [关于时间片调度算法issue的分析与解决]( https://club.rt-thread.org/ask/article/b3b36a52556382b2.html) 之前提的一个 PR #5954, 记得当时群里好像讨论SMP兼容,最后不了了之。 但这个时间片也算一个严重bug,时间片和延时设置不好,会严重影响同优先级任务调度,一直放着也不好。 再基于第2套方案提交一个PR, 改动较小,这个合并了,我把 #5954关了 测试: - [x] stm32407,ch32v103 - [ ] SMP 改动较小,thread->stat检查也合理,理论上没啥影响,没有板子,暂未验证 ] 以下的内容不应该在提交PR时的message修改,修改下述message,PR会被直接关闭。请在提交PR后,浏览器查看PR并对以下检查项逐项check,没问题后逐条在页面上打钩。 The following content must not be...
## 拉取/合并请求描述:(PR description) [ 增加华芯微特SWM341芯片的bsp支持包 ] 以下的内容不应该在提交PR时的message修改,修改下述message,PR会被直接关闭。请在提交PR后,浏览器查看PR并对以下检查项逐项check,没问题后逐条在页面上打钩。 The following content must not be changed in the submitted PR message. Otherwise, the PR will be closed immediately. After submitted PR, please...
Currently I am using HMI-N9H30 dev board with N9H30K41 MPU with RT-Thread V4.1.0. All peripherals working ok. In USB HOST mode MSC is working Ok but when I am going...
## 拉取/合并请求描述:(PR description) [ 添加 原子操作 - [x] 原子类型定义 - [x] 用户使用 API 列表 - [x] 架构移植接口 - [x] 测试用例 - [x] ARM 架构实现 - [x] RISC-V 架构实现 - [...