朱天龙 (Armink)
748f6afd5e
[DeviceDriver][serialv2] Support configure when serial is open.
2022-10-12 14:21:41 +08:00
a1012112796
ab8c1418a6
tshell is the default value of FINSH_THREAD_NAME
2022-10-10 17:48:21 -04:00
winfenggao
74fd07a565
lseek()函数中,当seek到文件的位置和当前位置相同时,不需要调用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 17:48:02 -04:00
朱天龙 (Armink)
35c7dd6aba
[ulog] fix HEX log size calculate error.
2022-10-10 08:47:41 -04:00
xiaoguang_ma
80f495de4a
bug fix
...
When detecting all SDIO devices fails, it is also necessary to return information
2022-10-09 14:55:01 +08:00
朱天龙 (Armink)
a48f446a0f
[components][utilities][ulog] Improve the HEX LOG by new formater. ( #6490 )
...
- 重构格式化器
- 重写 HEX 日志功能,与标准日志使用相同的格式化器。与标准日志在日志过滤功能和日志头显示功能上一致
2022-10-08 22:33:10 -04:00
Tangyuxin
ca30428cee
修复低概率终端无法输入问题 ( #6464 )
...
* [ulog] Fix the problem that the terminal cannot input
* [mem] Fix NULL pointer access
2022-09-27 11:11:29 +08:00
YuQi
5debfdd84d
[TMS320F28379] implement PWM driver ( #6457 )
...
增加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-25 22:41:00 -04:00
Wayne
dc9887913b
[usbhost] List keyboard option. ( #6456 )
...
* [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 <wclin@nuvoton.com>
2022-09-22 23:23:28 -04:00
wdfk-prog
a4bd223e20
修改Ymodem组件中MSH的ry命令,已便于自定义保存路径 ( #6433 )
...
* 修改ry命令,已便于自定义保存路径
* modified: components/utilities/ymodem/ry_sy.c
2022-09-20 10:31:34 -04:00
Tangyuxin
a4829b1c00
[fix] Fix simulator compilation warnings ( #6438 )
...
* [fix] Fix simulator compilation warnings
* Update bsp/simulator/rtconfig_project.h
Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2022-09-20 10:31:11 -04:00
Meco Man
981e721c3b
[kernel] add rt_ssize_t data structure
2022-09-16 17:26:07 +08:00
lhylhylhy6
5ccb0bbeaf
[modify]修改components/drivers/spi/sfud/README.md文件
2022-09-09 00:37:23 -04:00
Meco Man
ce16945cba
[kernel][version] 采用新的版本宏定义
...
版本控制规范: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-07 10:11:45 -04:00
lhylhylhy6
45244037de
[modify]修改waitqueue.c注释中的错误 ( #6376 )
2022-09-06 00:29:05 -04:00
liYangYang
d25bf469fa
[rt_drv_pwm]完善PWM框架互补输出部分代码 ( #6338 )
...
* [pwm]Improve the code
* 将与bsp无关的代码移植到框架部分
* 添加注释
2022-09-01 00:59:44 -04:00
liYangYang
6ac09a6db0
[spi]fix some bug for rt_spi_sendrecv16 ( #6360 )
...
修复 rt_spi_sendrecv16 api 对最高有效位(MSB or LSB)的处理不当造成的一些问题。
https://github.com/stm32duino/Arduino_Core_STM32/blob/main/libraries/SPI/src/SPI.cpp#L273
2022-09-01 00:36:45 -04:00
Meco Man
b04076d8aa
[armlibc] solve the compiling error
...
report in #6300
2022-08-17 23:48:05 -04:00
MysticBoy
a0c3dc4c5b
针对 TAMAGAWA 的 Smart-Abs 设备 TS5705N50添加 2.5M 波特率 ( #6294 )
...
* 针对 TAMAGAWA 的 Smart-Abs 设备 TS5705N50添加 2.5M 波特率
2022-08-17 04:30:17 -04:00
xjy198903
840f6b997c
[nxp][imxrt1170]Fix building problem ( #6297 )
2022-08-17 04:28:58 -04:00
Meco Man
dd94198bd6
[gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM
2022-08-16 09:39:00 +08:00
Meco Man
bd33d37bc4
该问题在Keil-MDK中没有一个太好的解决方案。本PR为权衡利弊之后得到的一套解决方案。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-16 09:37:24 +08:00
gbcwbz
84fe80fbf9
[DeviceDriver] Fix can infinite loop when can driver send error
...
- 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 23:07:43 -04:00
Fan Yang
666af5e29d
[DeviceDriver] Add CANFD support and correct typos ( #5912 )
...
* 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 <fan.yang@hpmicro.com>
* update
Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
Co-authored-by: Meco Man <920369182@qq.com>
2022-08-13 22:59:28 -04:00
Meco Man
a0cfdbdaad
[sfud] keep macros in order attach #6255
2022-08-13 22:04:46 -04:00
tfx2001
218cdbce4e
add assert for serial v2
2022-08-13 17:04:08 -04:00
Meco Man
b7572303f0
[sfud] 同步上游
2022-08-11 23:14:19 -04:00
chinky
4c74eb1add
[SFUD]support NM25Q128EVB
2022-08-11 22:19:45 -04:00
Man, Jianting (Meco)
8da744a750
[exit] 修复_exit函数条件分支未覆盖所有情况的问题 ( #6239 )
...
attach #6229
2022-08-08 17:21:29 +08:00
xiangxistu
e61d05ca1a
[fix] the risk for function exit() when open pthread support. ( #6229 )
...
* [fix] the risk for function exit() when open pthread support.
* [update] modify annotation from "user data" to "pthread_data".
2022-08-07 23:16:17 -04:00
Meco Man
c33289ace7
[ymodem] move error codes to rym_code to silence warnings
2022-08-04 01:50:04 -04:00
Meco Man
067315ff40
[phy] fix the PHY_FULL_DUPLEX conflicts
2022-08-03 22:45:27 -04:00
HubretXie
223bc17df9
[serial_v2] fixed bug ( #6213 )
...
* [kernel][timer] fixed bug serial_v2 驱动问题,导致所有写入都使用阻塞方式写入
2022-08-03 22:42:20 -04:00
dongly
3363586cbb
Fix some compilation warning ( #5744 )
...
* Fix some compilation warning
* 补充修正一些数据类型的使用错误
Co-authored-by: Meco Man <920369182@qq.com>
2022-08-02 12:09:49 -04:00
tyx
1579f0c02b
[components][var_export] 添加获取长度及二分查找功能
2022-08-01 23:11:13 -04:00
Aligagago
250b3cbc16
使用 AStyle.exe 统一代码格式
2022-07-27 11:45:29 +08:00
liYang~
32ed7dcfd2
修复了pwm互补输出的一些bug,并在finsh中添加使用说明 ( #6191 )
...
* Fix the bug of complementary output
2022-07-26 10:07:07 +08:00
Tangyuxin
f82705db1d
[touch] 调整触摸头文件至 rtdevice.h 中 ( #6180 )
2022-07-23 11:48:26 +08:00
Jiang Runnan
37fcfdb972
Solve the problem that LOG_W() may not be recognized when the INPUT CAPTURE module is enabled,which may cause the compilation failure.
2022-07-22 14:25:43 +08:00
Meco Man
a924da830e
[libc] 修复difftime函数在IAR下的编译错误
2022-07-20 10:07:03 +08:00
Man, Jianting (Meco)
5b6a257c20
chore: fix a typo ( #6154 )
2022-07-10 18:00:12 +08:00
Meco Man
b01c2b8a5a
[msh] add available memory information for free cmd
2022-07-07 18:08:06 +08:00
Dengguiling
aa2d2c63f6
[compoenets][driver][usb] fix usbhost hid issues. ( #6116 )
...
* [compoenets][driver][usb] fix usbhost hid issues.
1.Set idle function should receive an empty package.
2.Fix uinst_t reference error in hid enable function.
2022-07-07 16:10:43 +08:00
liuxianliang
a305edd4db
[fix] memory leak when the value of posix semaphore is zero.
2022-07-07 16:05:49 +08:00
liuxianliang
cca2f40ae0
[add] implement about "AT server".
2022-07-04 11:03:01 +08:00
BreederBai
b2bc0dcd16
[rt_drv_pwm]增加API:增加单独设置PWM频率和脉宽的函数 ( #6130 )
...
* [rt_drv_pwm]增加API:增加单独设置PWM频率和脉宽的函数
2022-07-04 10:40:42 +08:00
Stanley Lwin
02a0da51c3
List command ( #6134 )
...
* initial commit for list cmd
2022-07-04 09:38:50 +08:00
Meco Man
9623706eff
Revert "解决将RT_NULL当做数字0使用的问题"
...
This reverts commit 6a05ddf63d
.
2022-07-01 15:51:28 +08:00
Meco Man
6a05ddf63d
解决将RT_NULL当做数字0使用的问题
2022-07-01 11:39:28 +08:00
Meco Man
584d06bd27
[finsh]修复使用finsh_set_prompt重定向了msh提示符的名称后,路径功能没有的问题
2022-07-01 11:38:31 +08:00