rt-thread
rt-thread copied to clipboard
RT-Thread is an open source IoT real-time operating system (RTOS).
`bsp/cvitek/cv18xx_risc-v/` 最新 master ---- 在编写跑马灯例子过程中,尝试读取 GPIO 引脚的状态值,失败 简单示例代码如下: ```c static int led_on(void) { rt_pin_write(pinno, PIN_HIGH); rt_kprintf("%d\n", rt_pin_read(pinno)); // 这里希望读到 1,但是 0 return 0; } static int led_off(void) { rt_pin_write(pinno, PIN_LOW);...
`bsp/cvitek/cv18xx_risc-v` master ---- ``` /home/u/ws/duo/rt-thread/bsp/cvitek/drivers/drv_wdt.c: In function '_wdt_control': /home/u/ws/duo/rt-thread/bsp/cvitek/drivers/drv_wdt.c:119:38: warning: assignment to 'void *' from 'unsigned int' makes pointer from integer without a cast [-Wint-conversion] 119 | wdt_device->parent.user_data = (rt_uint32_t)(*(rt_uint32_t...
`bsp/cvitek/cv18xx_risc-v/` master ---- 参考 `components/drivers/include/drivers/watchdog.h` ```c #define RT_DEVICE_CTRL_WDT_GET_TIMEOUT (RT_DEVICE_CTRL_BASE(WDT) + 1) /* get timeout(in seconds) */ #define RT_DEVICE_CTRL_WDT_SET_TIMEOUT (RT_DEVICE_CTRL_BASE(WDT) + 2) /* set timeout(in seconds) */ ``` RT_DEVICE_CTRL_WDT_SET_TIMEOUT 的单位是 s,但目前实现做成了...
## 拉取/合并请求描述:(PR description) #### 为什么提交这份PR (why to submit this PR) 对调度器添加虚函数以支持cpu线程占用率测量,已有软件包仅提供总的cpu占用测量,且占用钩子函数,不满足实际需要 #### 你的解决方案是什么 (what is your solution) 添加两个虚函数实现对每个线程cpu占用率的测量,且保留钩子函数并不占用,以提高扩展性。采用钩子链表可解决钩子函数占用问题但是将导致量钩子相关函数被重写,对内核文件改动过大过于复杂 #### 请提供验证的bsp和config (provide the config and bsp) ### 当前拉取/合并请求的状态 Intent for your...
rt-thread内核使能了smart,网络使能LwIP,均测试没问题。在online packages里边使能umqtt,然后选择编译示例程序(umqtt_ex_start等)。最后使用未经修改的qemu.sh脚本启动rt-thread。 在msh中键入umqtt_ex_start后rtt成功连接到后端mosquitto(mosquitto经测试配置没问题,freertos的coremqtt可以正常交互),但是当键入umqtt_ex_subscribe topic/test后输出: [E/umqtt] subscribe recv message timeout! topic: topic/test 从而导致无法正常订阅MQTT主题。
https://club.rt-thread.org/ask/question/4840d08975b3d4c1.html
## 拉取/合并请求描述:(PR description) [ #### 为什么提交这份PR (why to submit this PR) Fixed #9210 Blocks #9181 #### 你的解决方案是什么 (what is your solution) #### 请提供验证的bsp和config (provide the config and bsp) - BSP:...
## 拉取/合并请求描述:(PR description) [ #### 为什么提交这份PR (why to submit this PR) 修复ht32scons不能编译问题 #### 你的解决方案是什么 (what is your solution) 添加编译需要的宏 #### 请提供验证的bsp和config (provide the config and bsp) - BSP: - .config:...
### Describe problem solved by the proposed feature Relates to #8358 Tracking of related works on this topic. - [x] https://github.com/RT-Thread/rt-thread/pull/9164 - [x] https://github.com/RT-Thread/rt-thread/pull/9186 - [x] https://github.com/RT-Thread/rt-thread/pull/9123 - [ ]...
## 拉取/合并请求描述:(PR description) [ #### 为什么提交这份PR (why to submit this PR) #### 你的解决方案是什么 (what is your solution) #### 请提供验证的bsp和config (provide the config and bsp) - BSP: - .config: - action:...