Maihuanyi
de1d6dbc0e
ymodem of send error ( #6535 )
...
* 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 <guozhanxin@rt-thread.com>
2022-10-23 22:33:31 -04:00
Yunjie Gu
8fa9fde43a
[bsp][c28x] add support to not disable global interrupt in context-switch to enable zero-latency isr for critical interrupts.
2022-10-19 23:41:13 -04:00
SNOWA
3400a79035
Update at_utils.c
...
如果打印格式为"%02X"的数据大于0x7F,打印的数据就会在前面多出6个'F',原因详见https://blog.csdn.net/zqxwce821/article/details/53011925 。
现在通过强制转换成unsigned char后,在STM32(KEIL5+C99)已测试确认能修复该问题。
2022-10-19 22:28:36 -04:00
Bernard Xiong
34c77da153
[Kernel] Add nested mutex feature
2022-10-15 16:19:13 +08:00
YuQi
94221bbdd8
[bsp][c28x] 新增adc驱动 ( #6520 )
...
1. 在c28x文件目录上一层再套一层文件夹ti,目前28379的项目路径为rt-thread\bsp\ti\c28x\tms320f28379d
2. 新增adc驱动与kconfig配置
2022-10-15 00:56:00 -04:00
朱天龙 (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
xiangxistu
c2cdce970d
[fix] use atomic operation to protect pthread conditional variable. ( #6113 )
...
* [fix] use atomic operation to protect pthread conditional variable.
2022-07-01 09:36:18 +08:00
Man, Jianting (Meco)
e1e1596cbd
[iar] 修复编译错误 ( #6126 )
2022-07-01 09:15:29 +08:00
a1012112796
697bf139b2
[enhancement] Add string information for error ( #3186 )
...
* [enhancement]Add string information for error
* Update src/kservice.c
* Update src/kservice.c
Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
* remove %m
Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: Meco Man <920369182@qq.com>
2022-06-29 14:21:21 +08:00
Man, Jianting (Meco)
8275e90203
[libc][newlib] format ( #6104 )
2022-06-23 14:38:26 +08:00
Meco Man
1c95670bef
[rtdevices] eliminate recursion
2022-06-22 14:48:00 +08:00
Man, Jianting (Meco)
2c10d5ad01
[rtc] use gmtime_r to replace gmtime ( #6012 )
...
* [rtc] use gmtime_r to replace gmtime
2022-06-22 13:41:06 +08:00
Meco Man
4f1f8566f4
[spi] fix issue report #6008
...
rt_spi_sendrecv8()存在可能未初始化值返回的情况
2022-06-22 11:52:06 +08:00
Man, Jianting (Meco)
d5afcd7f0d
fix the error return ( #6097 )
2022-06-22 11:51:49 +08:00
Man, Jianting (Meco)
8bee7a0c23
[libc] implement extension standard C functions ( #6044 )
...
* implement extension standard C functions
2022-06-19 21:56:24 +08:00
Man, Jianting (Meco)
fb941e6d8d
[fingbuffer] fix a typo ( #6075 )
2022-06-17 18:46:46 +08:00
guo
b1fab8942a
[msh]Restore the free command.|还原 free命令。 ( #6084 )
2022-06-16 14:19:24 +08:00
solar_li
a50018c57e
[stm32][soft spi] implement soft spi ( #6078 )
...
* [stm32][soft spi] implement soft spi
2022-06-16 10:54:30 +08:00
Meco Man
808259135f
[cputime] suuport perf_counter
2022-06-15 17:30:28 +08:00
wanghaijing
0827ca64d0
Fix rt_qspi_send symbol extension BUG
2022-06-15 10:37:49 +08:00
Meco Man
c9878aacd2
[scons][iar] 将IAR的PLATFORM字段由iar调整为iccarm
...
将路径更新为IAR最新版本的路径
2022-06-09 07:01:59 +08:00
Meco Man
83b3aadaa3
[Scons][iar][iccarm] IAR统一使用iccarm作为判断条件而不是是用IDE的名字来进行判断
...
因为不确定后续IAR是否会像Keil一样内含有不同的编译工具链
此外,将判断条件改为列表方式,这样更方便后续增加其他可能的IAR编译链
2022-06-09 07:01:59 +08:00
Meco Man
50f041f5c2
[Scons] 将GCC判断条件改为列表方式,方便后续增加新的编译工具链
2022-06-09 07:01:59 +08:00
chunyexixiaoyu
37d0be3290
[libc][time] solve the problem which the os tick can be calculated wrongly because the local variable was not initialized.
2022-06-08 14:34:04 +08:00
Tangyuxin
f5c88add37
Fix compiler warnings ( #6023 )
2022-06-08 01:21:50 +08:00
gbcwbz
ecde6d2dcf
[libc][time] Fix clock_gettime for CLOCK_CPUTIME_ID ( #6029 )
2022-06-05 22:51:22 +08:00
Man, Jianting (Meco)
fb3f835089
[libc] remove strdup from rtthread.h ( #6026 )
...
add __STDC_LIMIT_MACROS macro in Keil
add RT_USING_LIBC in simulator
add _DLIB_ADD_EXTRA_SYMBOLS=0 in IAR
2022-06-04 17:02:35 +08:00
Man, Jianting (Meco)
02b176f8cb
[arduino] add comment ( #6016 )
2022-06-04 13:20:30 +08:00
xiangxistu
2f9f39764d
[add] winsock implement on windows simulator. ( #6010 )
...
* [add] winsock implement on windows simulator.
2022-05-31 11:50:17 +08:00
Man, Jianting (Meco)
c52c1c5521
[spi device] remove _spi_bus_device_control ( #5898 )
2022-05-30 18:05:05 +08:00
Tangyuxin
577d619d4c
[net][lwip] Support windows simulator ( #5993 )
2022-05-30 18:01:18 +08:00
xfwangqiang
e8d775f888
[componnets][pin]add pin operate command in MSH ( #5892 )
...
* 1. 在AT32的BSP的drv_gpio中增加了at32_pin_get函数,用于实现rt_pin_ops对象中的pin_get
2. 在MSH中增加了PIN的操作命令
3. 为了方便在MSH命令中解析字符串,增加了一些字符串相关的函数
2022-05-30 18:00:26 +08:00
Stanley Lwin
04a17d469a
[device][adc] implement adc_get_vref ( #5988 )
...
* add adc_get_vref
add stm32_adc_get_vref
2022-05-29 10:22:33 +08:00
Tangyuxin
ccfd2c3b28
[drivers][hwcrypto] Correct function return value definition ( #5984 )
2022-05-28 10:02:19 +08:00
Chester guo
1e27372e3e
Modify wlan framework ( #5076 )
...
* update auto connect use sys work.
* add fast connect.
* update wlan cmd, support scan result report user-level callback.
Co-authored-by: zetingxu <zetingxu@bestechnic.com>
Co-authored-by: liu2guang <liuguang@rt-thread.com>
Co-authored-by: guodi <guodi@rt-thread.com>
Co-authored-by: geniusgogo <xpxyr@sina.com>
2022-05-25 10:25:33 +08:00
Meco Man
c8c24ae7ab
[libc] revert back difftime
2022-05-25 10:05:59 +08:00
tyx
4f342456b3
[ulog] Optimize unnecessary refresh
2022-05-25 10:05:41 +08:00
Meco Man
42a136288d
[adc][pwm] correct the command description
2022-05-25 10:04:33 +08:00
Wayne
37d9921aa8
[MTD-NAND] Add private data pointer. ( #5974 )
...
* Disable TRNG function in default configuration.
* Fix building issue
* To catch context of upper file system.
Co-authored-by: Wayne Lin <wclin@nuvoton.com>
2022-05-23 01:47:07 +08:00
xiangxistu
4961ed59ba
[bug] use pointer that memory had freed. ( #5971 )
2022-05-23 01:46:22 +08:00
Stanley Lwin
f92c26a60b
[adc.c] add finsh voltage conversion command ( #5937 )
...
* Update adc.c
add finsh voltage conversion command
2022-05-19 10:36:50 +08:00
Man, Jianting (Meco)
c147ff417c
[rtdef][libc] solve the conflicts between libc data types and rtdef data types ( #5961 )
2022-05-19 10:35:32 +08:00
lgnq
50a42331e6
Add RT_SENSOR_VENDOR_MELEXIS in sensor_cmd.c ( #5966 )
...
* Add RT_SENSOR_VENDOR_MELEXIS in sensor_cmd.c
print vendor information of Melexis in the function sensor()
2022-05-19 10:20:39 +08:00
Stanley Lwin
3ecfe9c61e
[rt_drv_pwm.c] add finsh pwm function ( #5944 )
...
* add finsh pwm function
2022-05-19 10:18:55 +08:00
Meco Man
08737c2a26
[simulator] 消除windows下的警告
2022-05-19 09:43:20 +08:00
liuxianliang
6dd6929b8e
[fix] return "EINVAL" if "count" is zero.
2022-05-18 08:44:30 +08:00
liuxianliang
9f5a9b6bc8
[modify] the recycle logic about resource of pthread.
2022-05-18 08:44:30 +08:00
lgnq
9ab2094ef6
Add RT_SENSOR_VENDOR_MELEXIS in sensor.h
...
Melexis is the fourth largest automotive sensor manufacturer in the world.
www.melexis.com
2022-05-18 08:43:36 +08:00
Meco Man
2575a93516
rename sal.h as sal_low_lvl.h
2022-05-16 10:02:22 +08:00
Meco Man
0e5bb9d042
revert docking
2022-05-16 10:02:22 +08:00
Meco Man
7fc707d99c
[sal][kconfig] 重新梳理sal的依赖关系
2022-05-16 10:02:22 +08:00
Meco Man
b793b6427a
[sal] add draft for docking winsock
2022-05-16 10:02:22 +08:00
Meco Man
19abf927d2
[simulator] avoid conflicts between winsock.h and sys/time.h
2022-05-16 10:02:22 +08:00
Meco Man
d5eeec2872
[hwtimer] add disable interrupt protection for hwtimer_isr function
2022-05-11 15:28:50 +08:00
Man, Jianting (Meco)
0d2b96d7cc
[stm32][l4] add tim7 support | 设备框架以及驱动错误码处理逻辑存在问题 ( #5901 )
2022-05-09 22:59:27 +08:00
陈迎春
f977f07ddf
[fix] fix dlmodule compile 'SEEK_END' undeclared eror ( #5909 )
2022-05-09 09:37:17 +08:00
Man, Jianting (Meco)
6295ec108e
[kernel] remove the register keyword ( #5888 )
2022-04-29 06:34:42 +08:00
BreederBai
c28b79b7d7
硬件驱动(VCOM):增加获取USB虚拟串口连接状态的接口 ( #5881 )
...
* 硬件驱动(VCOM):增加获取USB虚拟串口连接状态的接口
2022-04-28 20:30:51 +08:00
Tangyuxin
7f1157e0de
[drivers][serial] ioctl add F_SETFL cmd ( #5876 )
2022-04-26 13:13:51 +08:00
Man, Jianting (Meco)
6ce4a87492
[fcntl] create new fcntl.h file for vs ( #5860 )
...
* [fcntl] create new fcntl.h file for vs
2022-04-24 10:52:57 +08:00
tyx
13f8a99e46
[drivers][usb] Fix compilation warning
2022-04-23 23:08:47 +08:00
tyx
8aecd43c78
[drivers][hwtimer] Fix compilation warning
2022-04-23 23:08:47 +08:00
Meco Man
175ca2ee09
[dac] add get resolution method
2022-04-23 23:03:59 +08:00
Meco Man
5e8871e1a2
[iar] add CLOCKS_PER_SEC
...
https://www.iar.com/knowledge/learn/programming/using-c-standard-library-time-and-clock-functions/
2022-04-22 22:32:27 +08:00
Meco Man
2774343d97
[libc][time] 修复IAR版本判断逻辑错误
2022-04-22 22:32:27 +08:00
Man, Jianting (Meco)
2c6a279ac3
[pwm] 优化pwm框架 ( #5857 )
2022-04-22 22:31:29 +08:00
Man, Jianting (Meco)
c2a0995545
[adc] 支持adc框架获取BSP的ADC分辨率 ( #5853 )
2022-04-22 22:26:41 +08:00
Man, Jianting (Meco)
43484a201d
[libc] 优化armcc armclang处理 ( #5858 )
2022-04-22 13:39:44 +08:00
guozhanxin
7a717b094e
[fix] building error.
2022-04-21 14:35:11 +08:00
blta
2d08dca65a
[USB] fix stall bug on control transfers
2022-04-20 14:33:12 +08:00
thewon86
f5b0bfd3f4
uniform code writing-disable interrupt
2022-04-20 14:22:43 +08:00
tyx
5fa15a19a0
[lwip] Fix compilation warning
2022-04-20 10:41:13 +08:00
Man, Jianting (Meco)
a0f8d43744
[gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM ( #5802 )
...
* [gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM
2022-04-20 09:56:04 +08:00
guozhanxin
08bebb40ba
[usb audio] fix building error.
2022-04-20 09:10:52 +08:00
Tangyuxin
20f5d934a9
[libc][time] Fix bug ( #5831 )
2022-04-19 22:47:14 +08:00
Tangyuxin
14d9709fdc
[finsh][cmd] Enhance system robustness ( #5832 )
2022-04-19 22:46:42 +08:00
Meco Man
991b6e78b3
[bug] 修正rtc对时间参数范围的处理 | fix a bug of rtc
2022-04-19 11:48:59 +08:00
Meco Man
5e9f525c41
[kernel] enable RT_DEBUG_DEVICE by default and move weak rt_hw_dealy_us in kservice.c
2022-04-19 11:26:41 +08:00
tyx
87046a1abf
[libc][io] Remove definitions that are not in use
2022-04-19 11:22:58 +08:00
tyx
6237d2aa69
[components][fal] Compact code
2022-04-19 11:13:56 +08:00
tyx
e414cb459d
[components][drivers] Update device type definition and command definition
2022-04-18 09:38:56 +08:00
Wayne
615dbe946c
Fix return value of rt_dac_write function. ( #5816 )
...
Co-authored-by: Wayne Lin <wclin@nuvoton.com>
2022-04-15 17:09:37 +08:00
Meco Man
bda32cdedb
[libc] fix that some function cannot be found in unistd.h
2022-04-15 15:40:20 +08:00
Judd
80f20f668b
fix comment
...
fix comment on return value of `rt_hwcrypto_crc_update`
2022-04-13 16:20:39 +08:00
Man, Jianting (Meco)
de6d7eca5a
[libc] fix the sys/select.h problem ( #5790 )
2022-04-09 08:46:18 +08:00
Man, Jianting (Meco)
03823b5016
[kconfig] add 64bit default value for stack size. set tick HZ as 1000 by default ( #5778 )
...
* [kconfig] add 64bit default value for stack size. set tick HZ as 1000 by default
* 用RT_KSERVICE_USING_STDLIB_MEMXXX代替RT_KSERVICE_USING_STDLIB_MEMCP/MEMSET
将RT_KSERVICE_USING_STDLIB设置为默认开启
* 优化rt_kprintf支持longlong的能力,默认在64位CPU为开启状态
RT_PRINTF_LONGLONG命名不规范,更改为RT_KPRINTF_USING_LONGLONG
* fix commit error
* fix error
* 优化 system 函数
* RT_KSERVICE_USING_STDLIB_MEMXXX->RT_KSERVICE_USING_STDLIB_MEMORY
2022-04-09 00:40:36 +08:00
Yang sheng
eb2fc60207
[bsp] Make all warnings into errors with qemu-vexpress-a9 qemu-virt64… ( #5785 )
...
* [bsp] Make all warnings into errors with qemu-vexpress-a9 qemu-virt64-aarch64 and stm32f411-st-nucleo.
* [RTC] Fix compile errors
2022-04-09 00:39:00 +08:00
Man, Jianting (Meco)
084bb1c956
[libc] improve sconscript ( #5789 )
2022-04-08 23:15:27 +08:00
Bernard Xiong
1aab3607af
Revert "[dfs][romfs]支持相对地址模式 ( #5768 )" ( #5786 )
...
This reverts commit e68f934ff8
.
2022-04-08 20:03:43 +08:00
LiuKang
28b4db91c3
[update] support fal api for c++ ( #5784 )
2022-04-08 12:53:01 +08:00
guo
4b06115951
[finsh]fix list_device crash. ( #5780 )
2022-04-07 15:46:38 +08:00
Man, Jianting (Meco)
c318dfa964
improve libc time and MSVC simulator ( #5775 )
...
- [libc] 解决由于类unix操作系统发展历史原因fcntl.h定义的标志位在不同编译器中定义不同的问题
- [simulator] 部分宏定义转为全局宏定义以确保vs内置文件可以正确配置
- [simulator] 取消自欺欺人式的警告消除处理方式
- [libc][time] 优化time相关结构体在不同编译器下的包含
2022-04-07 14:24:11 +08:00
Tangyuxin
e68f934ff8
[dfs][romfs]支持相对地址模式 ( #5768 )
2022-04-06 21:13:12 +08:00
Tangyuxin
da3d61e043
[device]Detailed classification of devices types ( #5769 )
2022-04-06 21:12:39 +08:00
tyx
782b9dd45a
[components][sdio] Support DDR mode
2022-04-06 16:06:46 +08:00
tyx
556b14ed47
[components][ulog] Add file backend
2022-04-06 16:05:45 +08:00
tyx
cceefd5ef9
[hwcrypto]Optimize memory usage
2022-04-06 10:29:05 +08:00
tyx
b80f581562
[compilers] Fix c/c++ compilation warnings and errors
2022-04-06 10:27:38 +08:00
tyx
e896021b56
[drivers][rtc]Add comments
2022-04-06 10:26:04 +08:00
tyx
c4f107f528
[drivers][alarm]Compact alarm output
2022-04-06 10:26:04 +08:00
tyx
b91f6f1206
[drivers][alarm] Optimize some codes
2022-04-06 10:26:04 +08:00
tyx
b3f20ff9d2
[drivers][alarm] Fix week alarm bug
2022-04-06 10:26:04 +08:00
tyx
f35c9d6df7
[drivers][rtc] Enhanced date command
2022-04-06 10:26:04 +08:00
tyx
8a7babadda
[drivers][rtc]Add get/set timestamp function
2022-04-06 10:26:04 +08:00
tyx
9a4bd20149
[drivers][rtc] Optimize execution efficiency
2022-04-06 10:26:04 +08:00
tyx
0ef4560030
[drivers][rtc] Adjust ops function input parameters
2022-04-06 10:26:04 +08:00
Tangyuxin
59e751eb2a
[sensor]Add blood pressure sensor type ( #5766 )
2022-04-05 19:35:23 +08:00
朱天龙 (Armink)
039efbb075
完善 Serial V2 框架 ( #5770 )
...
* [stm32] fix h7 uart V2 driver unused code.
* [DeviceDriver][serialv2] fix the serialv2 when using for console device on DMA mode.
* [stm32][art-pi] using serial v2 by default
* [DeviceDriver][SerialV2] Add termios for serial@V2 .
* [BSP][STM32] Add hardware flow control for STM32 serial@V2 driver.
* [DeviceDriver][Serial@V2] Add hardware flow control for serial V2.
2022-04-04 17:25:04 +08:00
guo
83c01cabf3
[lwip] delete useless RTM export ( #5743 )
2022-03-30 14:06:02 +08:00
Man, Jianting (Meco)
b8bb6a4a87
[poll][select] 修复select死循环的问题 ( #5740 )
2022-03-30 10:47:05 +08:00
guo
b2e2ab28e5
[update] Fix some spelling mistakes. ( #5738 )
2022-03-29 21:29:08 +08:00
guozhanxin
310f1ea4fa
[finsh] Fixed RT-Thread spelling
2022-03-29 14:43:34 +08:00
Man, Jianting (Meco)
be892de35a
[posix] add RT_USING_POSIX_SOCKET ( #5731 )
2022-03-29 13:39:55 +08:00
guo
2ad6e28237
Fixed the issue LOG_HEX no output at asyn mode. ( #5721 )
2022-03-27 00:53:23 +08:00
朱天龙 (Armink)
bae1be0f45
完善串口 V2 框架 ( #5720 )
...
* [stm32] fix h7 uart V2 driver unused code.
* [DeviceDriver][serialv2] fix the serialv2 when using for console device on DMA mode.
* [stm32][art-pi] using serial v2 by default
2022-03-27 00:52:41 +08:00
a1012112796
961fe7de0b
list_fd 显示完整路径 ( #5683 )
2022-03-26 15:45:53 +08:00
Man, Jianting (Meco)
a514b3bd16
[components][kconfig] 整理Kconfig目录名称和结构 ( #5698 )
2022-03-25 23:07:18 +08:00
kylepengchn
851d16b18f
Soft spi ( #5712 )
...
* add soft-spi
* add spi-bit-ops.c/h to components/drivers/spi
* add a drv_soft_spi example for gd32303e-eval
* use formatting.py scripts for scanning
Signed-off-by: kyle <kylepengchn@163.com>
2022-03-25 23:06:43 +08:00
Man, Jianting (Meco)
ba6f78bd8e
format code ( #5699 )
2022-03-24 08:30:41 +08:00
Man, Jianting (Meco)
2a1272ecfb
消除c99 ( #5696 )
2022-03-23 14:28:24 +08:00
kylepengchn
5810f4de7d
[components][drivers][spi]: 基于SPI总线驱动框架添加模拟SPI总线扩展 ( #5656 )
...
* add soft-spi
* add spi-bit-ops.c/h to components/drivers/spi
* add a drv_soft_spi example for gd32303e-eval
Signed-off-by: kyle <kylepengchn@163.com>
* Fixed the format and the certificate.
Signed-off-by: kyle <kylepengchn@163.com>
* Update the certificate data.
Signed-off-by: kyle <kylepengchn@163.com>
2022-03-23 14:16:14 +08:00
Man, Jianting (Meco)
8b58577230
[ulog][rtc][time][bug] solve the interference when enable the ulog timestamp ( #5687 )
...
* [ulog] 解决ulog开启时间戳后与libc time以及rtc驱动相关函数干涉的问题
* ulog:当发生递归输出时,后续递归想要输出的内容可能会因为防范递归的判断而无法输出
因此修改输出规则,在发生递归时,采用简单的,无格式的方式直接输出。这样既保证不会发生递归输出,也可以保证递归输出的部分可以正常输出。
* [ulog] size_t->rt_size_t NULL->RT_NULL
2022-03-21 14:06:17 +08:00
Man, Jianting (Meco)
ee10516544
[libc] fix a typo ( #5689 )
2022-03-21 08:57:36 +08:00
打盹的消防车
0c82e033dc
Open RT_USING_POSIX_STDIO caused serial_v2 to compile failed ( #5684 )
...
* fix:Open RT_USING_POSIX_STDIO caused serial_v2 to compile failed
2022-03-20 10:29:16 +08:00
LiuKang
aa80ba25d4
[update] fix finsh bug ( #5676 )
...
* [update] fix finsh bug
* [update] format code
2022-03-15 16:56:59 +08:00
LiuKang
75a7cb6929
[update] add fal component. ( #5662 )
...
* [update] add fal component.
* [update] format code.
* [update] change PKG_USING_FAL to RT_USING_FAL
* [update] format code.
* [update] fal
* [update] delete FAL_SW_VERSION
2022-03-15 09:48:05 +08:00
LiuKang
46d09e045e
[update] remove extra code. ( #5663 )
2022-03-14 09:14:09 +08:00
Man, Jianting (Meco)
3df75f9e32
[lwip] add lwip latest version ( #5629 )
...
* [lwip] 增加LWIP上游同步版本
* move pkgs to package repo
* add RT_USING_LWIP_LOCAL_VERSION to let users to decide whether can use upstream version of LwIP
* Update Kconfig
2022-03-14 09:13:04 +08:00
xiangxistu
ffae7a2612
[fix] add the header file to avoid compiler error. ( #5643 )
2022-03-08 11:35:11 +08:00
Man, Jianting (Meco)
86a10716cd
优化ULOG_OUTPUT_FLOAT,避免使用内置libc的vsnprintf函数 ( #5632 )
2022-03-07 01:14:22 +08:00
Man, Jianting (Meco)
91ea28a625
[pipe.h] 移除多余的头文件,防止形成头文件递归包含 ( #5621 )
2022-03-02 18:45:19 +08:00
Man, Jianting (Meco)
b2fa700c2a
[lwip] integrate and improve lwipopts.h ( #5613 )
...
* [lwip-2.1.2] improve lwipopts.h
* 增加LWIP RTT侧版本定义
* 移动调整cc.h和lwipopts.h定义
* lwip2.1.2 2.0.3抽出lwipopts.h lwippools.h
* remove lwip1.4.1 lwipopts.h
* [update] modify the default config through v1.4.1
* delete the useless macro and modify some unclear comments.
* [lwipopts.h] 完善头文件相关宏以及临界区保护相关宏
* remove latest version label
Co-authored-by: liuxianliang <liuxianliang@rt-thread.com>
2022-02-28 10:39:40 +08:00
Man, Jianting (Meco)
e96e3e07f5
[lwip] integrate lwip porting layer ( #5606 )
...
* [lwip] integrate lwip porting layer
* Lwip 通用文件梳理 (#2 )
* [modify] extract the common files for different version about lwip.
* [update] the initialization logic of lwIP.
* 整理源码结构
* ethernetif 头文件 ""改为<>
* 整理代码
* add macro definition "RT_USING_DEVICE_IPC".
* [update] mandatory selected "RT_USING_DEVICE_IPC".
* [modify] compile error for lost "lwip/init.h"
Co-authored-by: xiangxistu <52819708+xiangxistu@users.noreply.github.com>
Co-authored-by: liuxianliang <liuxianliang@rt-thread.com>
2022-02-23 23:56:43 +08:00
WillianChan 陈威廉
4106c43753
[fix][components][utilities][var_export]replace the search algorithm and fix some problems ( #5611 )
...
* [fix][components][utilities]adjust the order of compiler macros
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
* [modify][components][utilities]This PR complies with RT-Thread code specification
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
* [fix][components][utilities][var_export]replace the search algorithm and fix some problems
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
* [modify][components][utilities][var_export]make the code more beautiful
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
2022-02-23 23:55:27 +08:00
Man, Jianting (Meco)
6895da5307
[net] adjust folder structure ( #5587 )
...
* [net] adjust folder structure
- 将lwip相关的文件夹,移入lwip文件夹
- Kconfig 分散到at netdev lwip sal文件夹中,使用menuconfig代替menu
2022-02-20 00:07:45 +08:00
Man, Jianting (Meco)
5ec00a5a1d
[dmodule] 补充头文件 ( #5602 )
...
* add references
* [dmodule] add <fcntl.h>
2022-02-17 12:34:48 +08:00
WillianChan 陈威廉
49ccbdb851
[fix][components][utilities]adjust the order of compiler macros ( #5593 )
...
* [fix][components][utilities]adjust the order of compiler macros
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
* [modify][components][utilities]This PR complies with RT-Thread code specification
Signed-off-by: WillianChan <chentingwei@rt-thread.com>
2022-02-14 14:03:34 +08:00
Man, Jianting (Meco)
d4b5555b7e
移除localtime_r多余的声明 ( #5590 )
2022-02-10 18:19:33 +08:00
woody
6d0caf7bfc
修改dac.c函数名称错误 ( #5591 )
2022-02-10 18:18:52 +08:00
guozhanxin
af702e048d
[ulog] Optimize code to improve readability.
2022-02-10 10:22:08 +08:00
guozhanxin
26c511475e
[ulog] Fixed the problem of abnormal log output at the INIT_BOARD_EXPORT level.
2022-02-10 10:22:08 +08:00
guo
580194f5f0
Merge pull request #4740 from Guozhanxin/scheduler_check
2022-01-28 16:38:32 +08:00
geniusgogo
658b2c1027
fix 32bit & 64bit value to pointer interconvert.
2022-01-28 11:35:10 +08:00
geniusgogo
039e2ff530
fixed wlan driver dhcp multitask safety
2022-01-28 11:35:10 +08:00
Henson
500d26c257
optimize code
2022-01-26 21:39:06 +08:00
guozhanxin
9b44535740
add RT_DEBUG_SCHEDULER_AVAILABLE check
2022-01-26 16:03:31 +08:00
guozhanxin
2f6f9da5e3
fix usbhost issue by #4378
2022-01-26 11:39:39 +08:00
guo
9b44734643
Merge pull request #4378 from LeeChunHei/usbh_construct
...
添加多過一個usb host的可能性
2022-01-26 10:39:46 +08:00
Man, Jianting (Meco)
5a0fea6987
[Kconfig][libcpu] 增加ARCH_CPU_BIG_ENDIAN ( #5547 )
...
* [cpu] 增加ARCH_CPU_BIG_ENDIAN
- 之前RT_USING_BIG_ENDIAN的命名并不合理,予以替换为ARCH_CPU_BIG_ENDIAN
- 删除一处多余的ARCH_CPU_64BIT
- 整理了libcpu/Kconfig的格式
* [libcpu][Kconfig] Cortex-M4&7 select ARCH_ARM_CORTEX_FPU
* revert last commit
2022-01-25 15:00:47 +08:00
thewon86
4db9cfbebe
return thread error when resumed by signal
2022-01-25 13:58:33 +08:00
Meco Man
3e59cfd70e
update posix-info.txt
2022-01-25 13:40:10 +08:00