summaryrefslogtreecommitdiff
path: root/components
AgeCommit message (Collapse)Author
2022-11-09replace `rt_enter_critical` with `dfs_lock` for list_fda1012112796
I found that if use mutex in `rt_kprintf`, the `rt_enter_critical` will create a assert error later. after chehcking,I found all operation with fd_table has using `dfs_lock/unlock` to protect. so I think using `dfs_lock` is enough. thanks. Signed-off-by: a1012112796 <[email protected]>
2022-11-09[sensor] 修改fetch_data方法的参数数据类型为rt_sensor_data_tMeco Man
2022-11-09[sensor]修改传感器设备名称前缀Meco Man
2022-11-09[sensor] use rt_ssize_t as the return value data typeMeco Man
2022-11-08[sensor] 统一数据结构名称和函数命名Meco Man
2022-11-08[sdio] remove mmcsd_delay_msxiao xie
修改SD检测线程函数里面的延时实现,将mmcsd_delay_ms改为rt_thread_mdelay. mmcsd_delay_ms过时且延时计算错误。
2022-11-06[sensors] remvoe useless sensor.hMeco Man
2022-11-06Merge pull request #6523 from BernardXiong/nested_mutexBernard Xiong
[Kernel] Add nested mutex feature
2022-11-02bugfix: remove sdcard block dev may cause a constant loop.xiaoguang_ma
2022-10-28[libc][time] ↵Meco Man
解决部分编译平台CLOCKS_PER_SEC无法被重新定义的问题
2022-10-27[net/lwip] Fix ppp retry assert error when tcp is connect.朱天龙 (Armink)
2022-10-25[compiler] 增加SConscript依赖标志 AddDepend (#6534)Man, Jianting (Meco)
* [compiler] 增加SConscript依赖标志 AddDepend * RT_USING_NEWLIB->RT_USING_NEWLIBC RT_USING_ARM_LIBC->RT_USING_ARMLIBC * 删除过时的板载测试例程 * [gd32] 移除无用的反汇编文件 * [bsp]移除老旧bsp中对RT_USING_NEWLIBC的手动宏定义
2022-10-23ymodem of send error (#6535)Maihuanyi
* modified ymodem.c to solve ymodem send file error * modified ry_sy.c to solve send file error of file data * Update ry_sy.c Co-authored-by: guo <[email protected]>
2022-10-19[bsp][c28x] add support to not disable global interrupt in context-switch to ↵Yunjie Gu
enable zero-latency isr for critical interrupts.
2022-10-19Update at_utils.cSNOWA
如果打印格式为"%02X"的数据大于0x7F,打印的数据就会在前面多出6个'F',原因详见https://blog.csdn.net/zqxwce821/article/details/53011925。 现在通过强制转换成unsigned char后,在STM32(KEIL5+C99)已测试确认能修复该问题。
2022-10-15[Kernel] Add nested mutex featureBernard Xiong
2022-10-15[bsp][c28x] 新增adc驱动 (#6520)YuQi
1. 在c28x文件目录上一层再套一层文件夹ti,目前28379的项目路径为rt-thread\bsp\ti\c28x\tms320f28379d 2. 新增adc驱动与kconfig配置
2022-10-12[DeviceDriver][serialv2] Support configure when serial is open.朱天龙 (Armink)
2022-10-10tshell is the default value of FINSH_THREAD_NAMEa1012112796
2022-10-10lseek()函数中,当seek到文件的位置和当前位置相同时,不� ↵winfenggao
�要调用dfs_file_lseek()函数,直接返回当前位置即可。 (#6498) 当seek到文件的位置和当前位置相同时,不需要调用dfs_file_lseek()函数,直接返回当前位置即可。 同时,以lseek(fd,0,SEEK_CUR)的方式执行函数可以返回文件当前读去位置,可以实现 ftell()的功能. 以lseek(fd,0,SEEK_CUR)的方式执行函数返回文件当前位置,实现ftell()的功能时不用调用dfs_file_lseek()函数,提高效率;seek(fd,0,SEEK_CUR)本来就能返回当前位置。
2022-10-10[ulog] fix HEX log size calculate error.朱天龙 (Armink)
2022-10-09bug fixxiaoguang_ma
When detecting all SDIO devices fails, it is also necessary to return information
2022-10-08[components][utilities][ulog] Improve the HEX LOG by new formater. (#6490)朱天龙 (Armink)
- 重构格式化器 - 重写 HEX 日志功能,与标准日志使用相同的格式化器。与标准日志在日志过滤功能和日志头显示功能上一致
2022-09-27修复低概率终端无法输入问题 (#6464)Tangyuxin
* [ulog] Fix the problem that the terminal cannot input * [mem] Fix NULL pointer access
2022-09-25[TMS320F28379] implement PWM driver (#6457)YuQi
增加c28x芯片的pwm驱动 已经在TMS320F28379中通过测试 pwm设备框架增加如下方法: #define PWM_CMD_SET_DEAD_TIME (RT_DEVICE_CTRL_BASE(PWM) + 8) #define PWM_CMD_SET_PHASE (RT_DEVICE_CTRL_BASE(PWM) + 9) #define PWM_CMD_ENABLE_IRQ (RT_DEVICE_CTRL_BASE(PWM) + 10) #define PWM_CMD_DISABLE_IRQ (RT_DEVICE_CTRL_BASE(PWM) + 11)
2022-09-22[usbhost] List keyboard option. (#6456)Wayne
* [bsp/nuvoton] Support NuMaker-M467HJ BSP and update drivers. * Format files. * [usbhost] List keyboard and update driver. * Enlarge to reasonable thread stack size. * Do indent.. * Keep private. Co-authored-by: Wayne Lin <[email protected]>
2022-09-20修改Ymodem组件中MSH的ry命令,已便于自定义保存路径 (#6433)wdfk-prog
* 修改ry命令,已便于自定义保存路径 * modified: components/utilities/ymodem/ry_sy.c
2022-09-20[fix] Fix simulator compilation warnings (#6438)Tangyuxin
* [fix] Fix simulator compilation warnings * Update bsp/simulator/rtconfig_project.h Co-authored-by: Man, Jianting (Meco) <[email protected]>
2022-09-16[kernel] add rt_ssize_t data structureMeco Man
2022-09-09[modify]修改components/drivers/spi/sfud/README.md文件lhylhylhy6
2022-09-07[kernel][version] 采用新的版本宏定义Meco Man
版本控制规范:https://semver.org/ 目前的版本子号不是很规范,其中RT_VERSION甚至和VS那边造成了冲突 ```c /* RT-Thread version information */ #define RT_VERSION 4L /**< major version number */ #define RT_SUBVERSION 1L /**< minor version number */ #define RT_REVISION 1L /**< revise version number */ ``` 参考ESP32: ```c /** Major version number (X.x.x) */ #define ESP_ARDUINO_VERSION_MAJOR 2 /** Minor version number (x.X.x) */ #define ESP_ARDUINO_VERSION_MINOR 0 /** Patch version number (x.x.X) */ #define ESP_ARDUINO_VERSION_PATCH 3 ``` 建议改成: ```c /* Major version number (X.x.x) */ #define RT_VERSION_MAJOR 4 /* Minor version number (x.X.x) */ #define RT_VERSION_MINOR 2 /* Patch version number (x.x.X) */ #define RT_VERSION_PATCH 0 ```
2022-09-06[modify]修改waitqueue.c注释中的错误 (#6376)lhylhylhy6
2022-09-01[rt_drv_pwm]完善PWM框架互补输出部分代码 (#6338)liYangYang
* [pwm]Improve the code * 将与bsp无关的代码移植到框架部分 * 添加注释
2022-09-01[spi]fix some bug for rt_spi_sendrecv16 (#6360)liYangYang
修复 rt_spi_sendrecv16 api 对最高有效位(MSB or LSB)的处理不当造成的一些问题。 https://github.com/stm32duino/Arduino_Core_STM32/blob/main/libraries/SPI/src/SPI.cpp#L273
2022-08-17[armlibc] solve the compiling errorMeco Man
report in #6300
2022-08-17针对 TAMAGAWA 的 Smart-Abs 设备 TS5705N50添加 2.5M 波特率 (#6294)MysticBoy
* 针对 TAMAGAWA 的 Smart-Abs 设备 TS5705N50添加 2.5M 波特率
2022-08-17[nxp][imxrt1170]Fix building problem (#6297)xjy198903
2022-08-16[gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORMMeco Man
2022-08-16该问题在Keil-MDK中没有一个太好的解决方案。本PR为权衡利 ↵Meco Man
弊之后得到的一套解决方案。Keil曾经提供了底层桩函数_sys_ensure,但是目前已经被废弃。因此唯一的解决方案就是每写完一句,就调用fsync去同步一次。 该问题在mbedos社区也进行过讨论,他们也面临和我们相同的两个问题: 1. Keil-MDK无有效的fflush解决方案,mbedos依然在使用淘汰的_sys_ensure桩函数。 2. Keil-MDK没有fileno函数,我方少部分软件包因此而无法使用Keil平台编译。 参考:https://github.com/ARMmbed/mbed-os/issues/1601 issue: https://github.com/RT-Thread/rt-thread/issues/4928 经过进一步测试发现,Keil-MDK中的fflush函数已经退化成服务于STDOUT的函数,Keil-MDK内部有一个buffer可以存放fputc(stdout) 发过来的数据,如果调用fflush,这些数据是可以flush出去的。但是如果是真正的文件数据,fflush函数并没有提供任何桩函数接口可以让文件flush数据出去。
2022-08-13[DeviceDriver] Fix can infinite loop when can driver send errorgbcwbz
- in _can_int_tx if can driver sendmsg do not return RT_EOK, it will repeat until sendmsg return RT_EOK - if error occur on can bus(wire broken or EMI), all threads that have lower priority will not be executed - we should let application layer to determine if resend is appropriate when send fail, besides in data link layer, can already implemented auto resend in hardware
2022-08-13[DeviceDriver] Add CANFD support and correct typos (#5912)Fan Yang
* Add CANFD support and correct typos - Added CANFD required fields to can.h - Fixed typos in can.h and can.c - Corrected all the projects affected by the typo - Fixed wrong line-ending in some affected can driver files Signed-off-by: Fan YANG <[email protected]> * update Signed-off-by: Fan YANG <[email protected]> Co-authored-by: Meco Man <[email protected]>
2022-08-13[sfud] keep macros in order attach #6255Meco Man
2022-08-13add assert for serial v2tfx2001
2022-08-11[sfud] 同步上游Meco Man
2022-08-11[SFUD]support NM25Q128EVBchinky
2022-08-08[exit] 修复_exit函数条件分支未覆盖所有情况的问题 (#6239)Man, Jianting (Meco)
attach #6229
2022-08-07[fix] the risk for function exit() when open pthread support. (#6229)xiangxistu
* [fix] the risk for function exit() when open pthread support. * [update] modify annotation from "user data" to "pthread_data".
2022-08-04[ymodem] move error codes to rym_code to silence warningsMeco Man
2022-08-03[phy] fix the PHY_FULL_DUPLEX conflictsMeco Man
2022-08-03[serial_v2] fixed bug (#6213)HubretXie
* [kernel][timer] fixed bug serial_v2 驱动问题,导致所有写入都使用阻塞方式写入