rt-thread
rt-thread copied to clipboard
RT-Thread is an open source IoT real-time operating system (RTOS).
uconfig_t rt_usbd_find_config(udevice_t device, rt_uint8_t value) { struct rt_list_node* node; uconfig_t cfg = RT_NULL; RT_DEBUG_LOG(RT_DEBUG_USB, ("rt_usbd_find_config\n")); /* parameter check */ RT_ASSERT(device != RT_NULL); RT_ASSERT(value dev_desc.bNumConfigurations); /* search a configration in the...
在 https://github.com/RT-Thread/userapps 中,编写以下代码: ```c #include #include #include #include #include int main(int argc, char **argv) { char *pathbuf = malloc(PATH_MAX); char *basedir = realpath(argv[1], pathbuf); if (basedir == NULL) { printf("%s:...
## 拉取/合并请求描述:(PR description) [ 此PR意图在脚本中增加 scons --strict命令,使用该命令编译工程时,会自动将CFLAGS CXXFLAGS设置为 Werrors,即较为严格的编译模式,任何警告都会当做错误来处理。 该命令主要用于CI,在CI执行bsp编译时,可以使用 scons --strict命令。现在QEMU的rtconfig.py 为了CI检查,直接将CFLAGS加上了Werrors,导致正常编译过程中也把警告当做了错误,对日常使用该bsp造成了影响。 ] 以下的内容不应该在提交PR时的message修改,修改下述message,PR会被直接关闭。请在提交PR后,浏览器查看PR并对以下检查项逐项check,没问题后逐条在页面上打钩。 The following content must not be changed in the submitted PR message. Otherwise, the PR...
分支:master 芯片:stm32f767 问题:在使用can设备时,用`rt_device_set_tx_complete`注册回调函数,无法被调用。在查找`rt-thread/components/drivers/can/can.c`后发现未调用此接口。
最新的LWIP 2.1.2里面,没有找到“set_if6”这个函数呢,是已经废弃了吗?  另外,如果已经不用了,那要怎么才能手动设置ipv6?
This is my project with issue: https://github.com/neuberfran/CH32V307VCT6/blob/main/User/main.c My project is based on this: https://github.com/lbthomsen/CH32V307V-EVT-R1/tree/master/oscillator and this: https://stm32world.com/wiki/CH32_Oscillator **issue:** ``` c:/mounriver2/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: ./Debug/debug.o: in function `_write': C:\MRS_DATA\workspace\CH32V307VCT6\obj/../Debug/debug.c:152: multiple definition of...
## 拉取/合并请求描述:(PR description) [ #### 为什么提交这份PR (why to submit this PR) 更新 cvitek 的config,cv1800b默认中断号配置有问题 #### 你的解决方案是什么 (what is your solution) 修改kconfig和.config文件 #### 请提供验证的bsp和config (provide the config and bsp) - BSP:bsp/cvitek/cv1800b...
fix(serial_v2): tx_fifo->rb.buffer_ptr not init when RT_DEVICE_FLAG_DMA_TX and RT_SERIAL_TX_BLOCKING
## 拉取/合并请求描述:(PR description) [ #### 为什么提交这份PR (why to submit this PR) serial_v2驱动框架,rt_serial_tx_enable()函数,在 **DMA阻塞发送(RT_DEVICE_FLAG_DMA_TX and RT_SERIAL_TX_BLOCKING)** 的时候,使用rt_malloc分配了tx_fifo内存,但是并未对`tx_fifo->rb.buffer_ptr`指针进行初始化(rt_malloc不会自动初始化内存),因此可能导致buffer_ptr是一个随机指针。但是`rt_serail_write()`函数需要根据`tx_fifo->rb.buffer_ptr`是否为RT_NULL来判断是调用`_serial_fifo_tx_blocking_nbuf()`还是`_serial_fifo_tx_blocking_buf()`。 由于tx_fifo->rb.buffer_ptr可能是一个随机值(不一定为RT_NULL=0),导致RT_DEVICE_FLAG_DMA_TX and RT_SERIAL_TX_BLOCKING模式下调用了_serial_fifo_tx_blocking_buf(),但是rb没有真正开辟内存空间,导致内存异常 #### 你的解决方案是什么 (what is your solution) rt_serial_tx_enable(),在DMA阻塞发送分支下,对`tx_fifo->rb.buffer_ptr`进行初始化,赋值为RT_NULL。 ```c /* If not...
## 拉取/合并请求描述:(PR description) [ #### 为什么提交这份PR (why to submit this PR) https://github.com/RT-Thread/rt-thread/issues/8469 解决issue #### 你的解决方案是什么 (what is your solution) 对cortex-a cpu的启动步骤仿照aarch64的风格进行了整理,使逻辑更加清晰,并解决了上述问题。已在qemu-vexpress-a9,raspi4-32,phytium开发板上进行测试,目前可以正常启动 #### 请提供验证的bsp和config (provide the config and bsp) - BSP:...