Commit Graph

1578 Commits

Author SHA1 Message Date
liYangYang 7c05d8517c
[STM32][SPI]解决挂载函数里面不同bsp对uaer_data的滥用 (#6819)
* [spi]attach 片选引脚依赖pin框架
* 修改attach函数
2023-01-07 23:03:42 -05:00
wdfk-prog 8f0cef3a87
[drivers][serial_v2]修复DMA+TX阻塞模式异常 (#6781)
* [drivers][serial_v2]修复DMA+TX阻塞模式异常
2023-01-05 01:25:16 -05:00
kylongmu 0b58637a49
USB CDC驱动在win11下无法识别,看了微软的描述修改子类后正常 (#6783)
这是微软关于此问题的链接:
 https://learn.microsoft.com/zh-cn/windows-hardware/drivers/usbcon/usb-driver-installation-based-on-compatible-ids#usbsersys-installation
Windows 10 及更高版本
从 Windows 10 开始,Usbser.inf 已添加到 %Systemroot%\INF 目录,该目录加载 Usbser.sys 作为设备堆栈中功能设备对象 (FDO) 。 如果设备属于通信和 CDC 控制设备类, Usbser.sys 加载。 无需编写自己的 INF 来引用驱动程序。 驱动程序是基于与包含在 Windows 中的其他 USB 设备类驱动程序相似的兼容 ID 匹配来加载的。

USB\Class_02

USB\Class_02&SubClass_02

如果要自动 加载Usbser.sys, 在设备描述符中将类代码设置为 02,将子类代码 设置为 02。 有关详细信息,请参阅 USB 通信设备类。 使用此方法时,无需为设备分发 INF 文件,因为系统使用的是 Usbser.inf。
如果设备指定类代码 02,但子类代码值不是 02,则 Usbser.sys不会自动加载 。 即插即用管理器尝试查找驱动程序。 如果找不到合适的驱动程序,则设备可能未加载驱动程序。 在这种情况下,你可能需要加载自己的驱动程序或编写引用另一个内置驱动程序的 INF。
2023-01-02 22:25:54 -05:00
Meco Man b1763e6903 [sensor] add setting power/accuracy/fetch data mode commands 2022-12-26 02:10:30 -05:00
Meco Man 3a7ee55780 [sensor] 优化control参数检查和sensor list命令 2022-12-26 02:10:30 -05:00
Meco Man 20a6f14e89 use PIN_IRQ_PIN_NONE to replace RT_PIN_NONE 2022-12-26 02:10:30 -05:00
Meco Man 2570fab0e1 [sensor] add sensor list command 2022-12-26 02:10:30 -05:00
Meco Man d2bab6d7ad [sensor] add LSC chip vendor 2022-12-26 02:10:30 -05:00
Meco Man d3c77d907f [sensor] set power and accuracy as the hightest level 2022-12-26 02:10:30 -05:00
Meco Man 8971545d8e [sensor] improve commands 2022-12-26 02:10:30 -05:00
bernard 1f092da9e0 fix compiling warning. 2022-12-26 14:24:26 +08:00
Man, Jianting (Meco) 262392a69c
[sensor] draft new sensor-hal framework (#6746)
* [sensor] new sensor framework
针对老版本sensor框架的诸多不合理设计进行重构
之前的PR中已经重构了浮点数相关的问题
本次PR主要围绕sensor的整体架构予以重构,对过于理想化的参数和模式予以删除
* [sensor] 增加can modbus总线类型
* [stm32l745] 完善sensor对接
* [sensor] fix the onchip ID print
2022-12-21 21:24:51 -05:00
Shell e8504c7cf1
[smart/aarch64] code sync (#6750)
* [smart/aarch64] sync aarch64
2022-12-20 17:49:37 +08:00
guo 68ca9f07a6
[rt-smart] 弱化 RT_USING_LWP,使用 RT_USING_SMART 作为宏配置 (#6740)
* [dfs] sync cromfs

* [rt-smart]Weaken RT_USING_LWP, use RT_USING_SMART as macro configuration

* [format] fix some format issue.
2022-12-16 18:38:28 +08:00
joechenchen ee632c21a8 fix:三字节读命令0x03,四字节读命令0x13,当命令为0x03需要加上0x10 2022-12-15 01:08:21 -05:00
Meco Man 9860b168b8 [sensor] 增加新传感器类型和单位 2022-12-12 22:44:07 -05:00
Bernard Xiong 2aa600e01b
[components] fix compiling warning (#6733) 2022-12-13 09:44:45 +08:00
Man, Jianting (Meco) 8b5a501831
[sensor][cmd] add sensor_get_type/vender/unit_name functions (#6727)
* [sensor][cmd] add sensor_get_type/vender/unit_name functions

* rename sensor folder
2022-12-11 22:45:04 -05:00
Man, Jianting (Meco) 99bdf978d7
[rtdef] use lower-case to define attributes (#6728)
* [rtdef] rename RT_WEAK attribute as rt_weak

* [rtdef] rename RT_USED attribute as rt_used

* [rtdef] rename RT_SECTION attribute as rt_section

* [rtdef] rename ALIGN attribute as rt_align

* [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
2022-12-11 13:12:03 -05:00
Meco Man a4b8762d85 [sfud] sync commit
db9a1746df
2022-12-11 01:35:45 -05:00
guozhanxin b5d77bbf37 [rtsmart] fix uart can't input after userapp exited at rv64 platform. 2022-12-09 07:54:29 -05:00
Yohozzy 6fcbd418e5
canfd帧结构加入 brs控制位 (#6701) 2022-12-07 01:49:44 -05:00
jaffer fa1f6c22e5 [fix]修复模拟i2c驱动延时bug
Signed-off-by: jaffer <jaffer.work@foxmail.com>
2022-12-05 21:38:02 -05:00
guo ecf2d82159
sync branch rt-smart. (#6641)
* Synchronize the code of the rt mart branch to the master branch.
  * TTY device
  * Add lwP code from rt-smart
  * Add vnode in DFS, but DFS will be re-write for rt-smart
  * There are three libcpu for rt-smart:
    * arm/cortex-a, arm/aarch64
    * riscv64

Co-authored-by: Rbb666 <zhangbingru@rt-thread.com>
Co-authored-by: zhkag <zhkag@foxmail.com>
2022-12-03 12:07:44 +08:00
wdfk-prog 569e2ae1e8
[CAN]update struct can_filter_item and rt_can_msg (#6556)
* 修改ry命令,已便于自定义保存路径

* modified:   components/utilities/ymodem/ry_sy.c

* 修复从被动错误恢复后发送返回异常

* 修复在自动重传模式下,ACK异常阻塞线程
- 删除TX中断函数else分支。仅当RQCP位 置一才进入该中断
- 添加SCE中断函数中关于ACK_ERR的else判断。自动重传模式下会进入该判断,打断自动重传释放完成量。

* 增加对于CAN1与CAN2的SCE中断和TX中断的公共处理函数

* formatting格式化代码

* update struct can_filter_item and rt_can_msg
1. 对过滤器号和索引号结构体定义中同一名称hdr进行重命名hdr_bank和hdr_index,
以便准确区分.采用宏定义兼容以前变量名.
2. 添加接收标识rxfifo,已指明是哪个RXFIFO.

* 更正42M下的波特率

* 修复接收获取索引号错误

* 添加接收标识

* 更新注释

* 取消CANFD限制

* update struct can_filter_item and rt_can_msg
2022-11-21 21:45:51 -05:00
Meco Man 66411e0828 [sensor] improve cmd
using floating print format by default
2022-11-21 21:31:16 -05:00
Meco Man 953a8c265d add rt_sensor_float_t 2022-11-19 00:54:22 +08:00
Meco Man df397eb767 [sensor] 传感器数据类型使用float代替rt_uint32_t类型 2022-11-19 00:54:22 +08:00
myshow2258 87be8fdba8 Modified bsp/stm32/libraries/HAL_Drivers/drv_usbd.c
Modified   components/drivers/usb/usbdevice/class/cdc_vcom.c
修复cdc在v1v2的serial框架下接收发送错误的问题.stm32下usbd添加更多的ep_id,以支持复合设备.
2022-11-14 23:47:49 -05:00
Meco Man 6b9bdc12a9 [sensor] use arg to replace user_data 2022-11-14 22:19:47 -05:00
Meco Man f57eb4feb5 [sensor] 修改fetch_data方法的参数数据类型为rt_sensor_data_t 2022-11-09 17:23:27 +08:00
Meco Man f550fc58a9 [sensor]修改传感器设备名称前缀 2022-11-09 17:23:27 +08:00
Meco Man 39b25f660a [sensor] use rt_ssize_t as the return value data type 2022-11-09 17:23:27 +08:00
Meco Man 255020bca8 [sensor] 统一数据结构名称和函数命名 2022-11-08 12:17:50 -05:00
xiao xie 1755750b2a
[sdio] remove mmcsd_delay_ms
修改SD检测线程函数里面的延时实现,将mmcsd_delay_ms改为rt_thread_mdelay. mmcsd_delay_ms过时且延时计算错误。
2022-11-08 00:34:43 -05:00
Meco Man 1831661c4a [sensors] remvoe useless sensor.h 2022-11-06 23:07:30 -05:00
xiaoguang_ma e663d2d870 bugfix: remove sdcard block dev may cause a constant loop. 2022-11-02 15:27:41 +09: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
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
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
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
lhylhylhy6 5ccb0bbeaf [modify]修改components/drivers/spi/sfud/README.md文件 2022-09-09 00:37:23 -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
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
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
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
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
Man, Jianting (Meco) 5b6a257c20
chore: fix a typo (#6154) 2022-07-10 18:00:12 +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
BreederBai b2bc0dcd16
[rt_drv_pwm]增加API:增加单独设置PWM频率和脉宽的函数 (#6130)
* [rt_drv_pwm]增加API:增加单独设置PWM频率和脉宽的函数
2022-07-04 10:40:42 +08:00
Meco Man 1c95670bef [rtdevices] eliminate recursion 2022-06-22 14:48:00 +08:00
Meco Man 4f1f8566f4 [spi] fix issue report #6008
rt_spi_sendrecv8()存在可能未初始化值返回的情况
2022-06-22 11:52:06 +08:00
Man, Jianting (Meco) fb941e6d8d
[fingbuffer] fix a typo (#6075) 2022-06-17 18:46:46 +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 50f041f5c2 [Scons] 将GCC判断条件改为列表方式,方便后续增加新的编译工具链 2022-06-09 07:01:59 +08:00
Tangyuxin f5c88add37
Fix compiler warnings (#6023) 2022-06-08 01:21:50 +08:00
Man, Jianting (Meco) 02b176f8cb
[arduino] add comment (#6016) 2022-06-04 13:20:30 +08:00
Man, Jianting (Meco) c52c1c5521
[spi device] remove _spi_bus_device_control (#5898) 2022-05-30 18:05:05 +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 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
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
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
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 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
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
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
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
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
guozhanxin 08bebb40ba [usb audio] fix building error. 2022-04-20 09:10:52 +08:00
Meco Man 991b6e78b3 [bug] 修正rtc对时间参数范围的处理 | fix a bug of rtc 2022-04-19 11:48:59 +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
Judd 80f20f668b fix comment
fix comment on return value of `rt_hwcrypto_crc_update`
2022-04-13 16:20:39 +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
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 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 b2e2ab28e5
[update] Fix some spelling mistakes. (#5738) 2022-03-29 21:29:08 +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
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
打盹的消防车 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
xiangxistu ffae7a2612
[fix] add the header file to avoid compiler error. (#5643) 2022-03-08 11:35:11 +08:00
Man, Jianting (Meco) 91ea28a625
[pipe.h] 移除多余的头文件,防止形成头文件递归包含 (#5621) 2022-03-02 18:45:19 +08:00
woody 6d0caf7bfc
修改dac.c函数名称错误 (#5591) 2022-02-10 18:18:52 +08:00
guo 580194f5f0
Merge pull request #4740 from Guozhanxin/scheduler_check 2022-01-28 16:38:32 +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
thewon86 4db9cfbebe return thread error when resumed by signal 2022-01-25 13:58:33 +08:00
Meco Man e10173daff [device] rename src folder as ipc 2022-01-22 16:43:51 +08:00
Bernard Xiong b5de986122
Merge pull request #5542 from mysterywolf/keil
[sconscript.platform] 优化针对编译器判断
2022-01-20 21:01:00 +08:00
Meco Man 8bf5a28528 [workqueue] 增加rt_work_urgent 2022-01-20 20:58:46 +08:00
Meco Man 36cbc1fd2f [workqueue] time参数改为ticks,防止误解单位为ms 2022-01-20 20:58:46 +08:00
Meco Man 3a789b3317 [workqueue] improve comment 2022-01-20 20:58:46 +08:00
Meco Man 1874bd25aa [timer] improve parameter checking 2022-01-20 20:58:46 +08:00
guo 7c403d3587
Merge branch 'master' into keil 2022-01-20 14:20:43 +08:00
Meco Man 884218588a [sconscript.platform] 优化针对编译器判断的脚本
- 删除啰嗦的代码
related: https://github.com/RT-Thread/rt-thread/issues/3046
2022-01-19 23:24:47 -05:00
liukangcc 27511885f3 [update] change ccflags to cflags 2022-01-20 11:50:30 +08:00
Meco Man 8213bbd92e update 2022-01-14 23:09:32 +08:00
liukangcc 3d2e23ec1c [update] move dfs_posix.h to legacy/dfs/dfs_posix.h 2022-01-14 23:09:32 +08:00
Meco Man f89a162ea3 [core] 使用rt_memcpy rt_memset代替memcpy memset 2022-01-09 00:23:18 +08:00
Meco Man 918ee6147c add RT_USING_POSIX_STDIO 2022-01-05 23:11:58 +08:00
nongxiaoming cec72c92c7 [components][sdio] fix compile warning and optimized code. 2021-12-31 17:05:42 +08:00
nongxiaoming 57165329ac [components][usb] fix compile warning in cdc_vcom.c 2021-12-30 01:38:16 +08:00
Meco Man c8dcf7cc68 [libc]rename group name 2021-12-30 01:27:25 +08:00
guo dcce9886e9
Update sensor.c 2021-12-24 10:10:59 +08:00
guo 51569a068a
Merge pull request #5418 from mysterywolf/revert-5412-clang-arm
Revert "add clang-arm support."
2021-12-24 09:17:41 +08:00
Wayne Lin 9dc4ca0d31 Remove unused comment. 2021-12-24 05:36:12 +08:00
Wayne Lin 28f91a86f5 Correct sem's name of sd block device. 2021-12-24 05:36:12 +08:00
Wayne Lin f508d58c05 Strip tailing space. 2021-12-24 05:36:12 +08:00
Wayne Lin bac75e24bd [SDIO] Create SD block device.
1. New naming rule for multiple cards: sdXpY. Ex: sd0, sd0p0, sd0p1, sd1, sd1p0, sd1p1, .... sdXpY.
2. Always create super-node for backward-compatible and fdisk-like utility. EX: sd0, sd1, ..... sdX.
3. Shrink code.
2021-12-24 05:36:12 +08:00
Wayne Lin 600e67f952 Revert to RT_IPC_FLAG_PRIO. 2021-12-24 05:36:12 +08:00
Wayne Lin 7e6ffd3447 Support multi-partition/-card mounting. 2021-12-24 05:36:12 +08:00
Wayne Lin c84952d9cd Fix infinite-loop in rt_mmcsd_blk_remove.
1. Issue on traveling latest node in list if multi-partitions on card.
2021-12-24 05:36:12 +08:00
Man, Jianting (Meco) ed1f8b3f64 Revert "add clang-arm support."
This reverts commit a5f6fdc780.
2021-12-22 18:57:16 -05:00
guozhanxin a5f6fdc780 add clang-arm support. 2021-12-22 13:03:05 +08:00
guo fb7b9f4fb4
Merge pull request #5318 from enkiller/1201
[components][src] Optimize interrupt disable time
2021-12-21 17:40:59 +08:00
chenyingchun0312 417efc370f [drivers/i2c] optimize i2c driver framework 2021-12-17 10:25:08 +08:00
guo 6373523c31
Merge pull request #5343 from ousugo/addAnnotation
Add pipe.c function annotation
2021-12-15 12:00:42 +08:00
ousugo 9261bab77b Fix format 2021-12-14 21:17:00 +08:00
ousugo c9cbc6fb0c Fix annotation grammatical mistake 2021-12-14 21:17:00 +08:00
ousugo db32aba3d4 fix format 2021-12-14 21:17:00 +08:00
ousugo f62bd0373a add waitqueue.c function annotation 2021-12-14 21:17:00 +08:00
ousugo 3e9757888f Fix format and mistake 2021-12-14 14:13:02 +08:00
guo 92cf02a34d
Merge pull request #5262 from ShermanShao/master
[BSP/RA6M4-CPK] 添加 CAN、RW007 的支持
2021-12-14 11:24:47 +08:00
Sherman 0f0093aa3e [UPDATE]添加新驱动、完善 BSP
- [update] 更新 template 工程配置
 - [update] 更新 PLATFORM 配置
 - [add] 添加 ra icu 驱动文件
 - [add] 增加传感器类型 IAQ、EtOH
 - [add] 添加 CAN 驱动
 - [add] 添加 RW007 驱动及使用说明
 - [fix] GCC 编译问题
 - [fix] flash 驱动
 - [fix] 修改 scons 脚本配置
2021-12-14 11:04:46 +08:00
ousugo 4820dbb0b3 Merge branch 'master' into addAnnotation 2021-12-14 10:42:18 +08:00
张世争 7455e2487b [components] PM框架更新 2021-12-14 06:12:55 +08:00
Meco Man 7ff976dab3 [posix] [pipe] add IPC for POSIX and add pipe for it 2021-12-14 06:12:04 +08:00
ousugo a237f805b9 fix format 2021-12-07 16:08:00 +08:00
ousugo 7f698140e8 Add pipe.c function annotation 2021-12-07 16:05:01 +08:00
Meco Man 67e14adc4f [posix] 按照高级unix环境编程整理IO类别 2021-12-05 23:07:41 -05:00
Bernard Xiong 36d5154256
Merge pull request #5320 from mysterywolf/pse-master
[POSIX] move PSE branch to master
2021-12-05 13:16:39 +08:00
Bernard Xiong 0453536384
Merge pull request #5331 from recan-li/master_fix
【PR】修改bsp/qemu-vexpress-a9的若干问题
2021-12-05 09:58:57 +08:00
recan-li cf92ae747f fix: Fix compile warnings on qemu-vexpress-a9 platform (-Wimplicit-function-declaration) 2021-12-04 01:03:26 +08:00
guo fda37d55f8
Merge pull request #5319 from RT-Thread/master
【PSE分支】同步master到PSE分支
2021-12-02 10:09:37 +08:00
aozima c2fec1bf45 update cputime_cortexm.c support 64bit. 2021-12-01 20:08:32 +08:00
aozima 9a3d0a0ea2 cputime support 64bit. 2021-12-01 20:08:32 +08:00
Bernard Xiong 1cf8370b1b
Merge pull request #5295 from ousugo/addComment
Add dataqueue.c function annotation
2021-12-01 18:01:54 +08:00
ousugo b329611e35 Update annotation 2021-12-01 14:43:53 +08:00
tangyuxin a77cc81876 [components][drivers] format file 2021-12-01 14:41:13 +08:00
tangyuxin 5128a27c43 [components][src] Optimize interrupt disable time 2021-12-01 14:19:25 +08:00
Meco Man 43ebe094e3 [pipe] 补充注释 2021-12-01 00:29:02 -05:00
Meco Man 7973ede5a8 增加RT_USING_POSIX_FS 2021-11-29 00:53:46 -05:00
Bernard Xiong e055a00778
Merge pull request #5299 from mysterywolf/rtc
modify time.h to sys/time.h
2021-11-27 02:43:21 +08:00
Meco Man 7c789d4b11 revise some RT_USING_POSIX to RT_USING_POSIX_DEVIO 2021-11-24 09:47:55 -05:00
ousugo 2ef0d40aff Fix space 2021-11-24 21:59:37 +08:00
Bernard Xiong 6a6b43fe3e
Merge pull request #5261 from mysterywolf/weak
[kernel] prepare to support full functional sprintf-family functions
2021-11-24 17:38:15 +08:00
ousugo 02ca44bf1f Fix annotation grammatical mistake 2021-11-24 15:21:30 +08:00
ousugo 1deaa8fe50 Update annotation format 2021-11-24 14:19:25 +08:00
ousugo 2c2a1fe64e Update annotation format 2021-11-24 14:14:45 +08:00
Meco Man a1cc3d43e7 modify time.h to sys/time.h 2021-11-23 22:38:00 -05:00
ousugo afdbee97ed fix extra space 2021-11-23 16:40:55 +08:00
ousugo dc1f2631ee Add dataqueue.c function annotation 2021-11-23 16:05:17 +08:00
Meco Man df9a23c534 [mutex] use RT_IPC_FLAG_PRIO to replace RT_IPC_FLAG_FIFO 2021-11-17 15:57:15 -05:00
Meco Man 040f05f40d [sfud][cfg] 取消rt_kprintf声明 2021-11-16 12:12:47 -05:00
guo 7dd686faa7
fix sensor_cmd.c build error. 2021-11-09 20:37:16 +08:00
Bernard Xiong 31bf735d21
Merge pull request #5210 from mysterywolf/workqueue
[workqueue] rename rt_workqueue_critical_work as rt_workqueue_urgent_work
2021-10-27 10:40:15 +08:00
guo 574e11f62a
Merge pull request #5183 from tfx2001/tinyusb_stm32
[bsp][stm32] add TinyUSB support
2021-10-25 09:57:20 +08:00
Meco Man e538c5aa70 [workqueue] rename rt_workqueue_critical_work as rt_workqueue_urgent_work 2021-10-20 15:48:07 -04:00
tfx2001 c1d3d87494 [bsp][stm32] add TinyUSB support 2021-10-15 00:49:11 +08:00
guo 1f28bd89f8
Merge pull request #5174 from mysterywolf/timewarning
[libc][time] Ensure the data types are consistent
2021-10-14 13:35:50 +08:00
mazhiyuan f04941c951 [cdc_vcom.c]adapt to both v1 and v2 of serial 2021-10-14 11:42:05 +08:00
Meco Man 396b7da6fd [libc][time] Ensure the data types are consistent 2021-10-13 23:24:17 -04:00
mazhiyuan bc5744b1ba 修复cdc_vcom.c中的一些编译问题 2021-10-14 10:58:14 +08:00
mazhiyuan 0a7280f161 修复开启RT_USING_DEVICE_OPS时ecm.c报错 2021-10-14 10:36:38 +08:00
mazhiyuan 26ab85d50c 修复phy中device->ops的错误 2021-10-14 10:28:19 +08:00
mazhiyuan 99e9ea61bc 修复部分bsp编译报错 2021-10-13 11:02:01 +08:00
Lim-LinYuanbo 06fdc108b4
解决无法dist问题 (#5150)
* first commit, keil test pass

* feat : n32g452xx direct structure base at32

1. 重新整理目录结构

* feat : 基于AT32,将各驱动移植整改待验证

1. 部分驱动已经整改,但未验证
2. 根据AT32整改目录结构

* feat : add README document

1. 完善配置文件
2. 添加说明文档

* feat : 验证添加的驱动

1. UART 1-3 验证通过
2. ADC 1-2 CH 6-9 验证通过
3. TIM 6-7 验证通过

* feat : complete readme document

* feat : format code

1. ref https://github.com/mysterywolf/formatting

* feat : 完成PWM驱动移植与自测

1. 添加PWM测试代码
2. 修正PWM驱动周期与脉冲错误问题

* feat : 删除多余代码与多余的文件,修正注释与函数命名

* feat : fix tim channel comment

* feat : 完成DEMO测试例子

1. 完成MAIN函数中的LED测试例子
2. 完善README文档
3. 更新添加许可文件

* feat : 根据BSP提交自查完善固件

1. 添加.ignore_format.yml文件
2. 修正main.c的注释

* feat : add last line in .ignore_format.yml

* feat : delet file_path in .ignore_format.yml

* fix: gPIO/ADC driver

1. add ADC temperature&vref channel.
2.add GPIO IPD/OD configration

* fix: 解决告警

1. 解决告警(rt_drv_pwm.c: warning: implicit declaration of function 'atoi')

* feat: add scons --dist function

* fix: 解决MDK5无法编译问题

* perf: delete invalid code

Co-authored-by: linyuanbo_breo_server <linyuanbo@breo.com.cn>
2021-10-12 14:35:01 +08:00
armink 816a99d88e [DeviceDriver][RTC] Add RT_DEVICE_CTRL_RTC_GET_TIMEVAL and RT_DEVICE_CTRL_RTC_SET_TIMEVAL ops 2021-09-29 17:52:10 +08:00
armink ff0b6d241b [DeviceDriver][RTC] Remove RT_DEVICE_CTRL_RTC_GET_TIME_US and RT_DEVICE_CTRL_RTC_SET_TIME_US. Add RT_DEVICE_CTRL_RTC_GET_TIMEVAL and RT_DEVICE_CTRL_RTC_SET_TIMEVAL. The RT_DEVICE_CTRL_RTC_GET_TIMEVAL cmd can get second time and microsecond time. 2021-09-29 17:12:27 +08:00
guo 55a302cd09
Merge branch 'master' into usbh_construct 2021-09-28 10:36:54 +08:00
Meco Man c360688714 使用poll.h代替dfs_poll.h 2021-09-11 11:56:54 -04:00
Bernard Xiong f8a991d092
Merge pull request #5036 from mysterywolf/serial
[serial] 优化RT_USING_POSIX_TERMIOS预编译
2021-09-11 20:03:15 +08:00
Bernard Xiong 4423b487c5
Merge pull request #5044 from BernardXiong/libc_pr
[libc] remove rtlibc
2021-09-11 20:00:39 +08:00
BernardXiong 0b13409c16 [BSP] fix compiling issue with libc 2021-09-11 18:09:22 +08:00
BernardXiong 3dc820b371 [drivers] fix stdint issue in cputime 2021-09-11 16:00:00 +08:00
Bernard Xiong 8da9f78d72 [libc] remove rtlibc 2021-09-11 11:07:51 +08:00
Meco Man c1c63fc10c [serial] 优化RT_USING_POSIX_TERMIOS预编译 2021-09-09 22:41:54 -04:00
Jackistang fca9207517 serial: add CTS/RTS flowcontrol. 2021-09-06 13:27:40 +08:00
guo 877bb072cf
Merge pull request #5014 from mysterywolf/finsh
[finsh] 修复由于移除finsh导致__cmd_xxx命令无法使用的问题
2021-09-05 19:49:43 +08:00
Meco Man e18d44940f [finsh] 修复由于移除finsh导致__cmd_xxx命令无法使用的问题 2021-09-05 01:57:26 -04:00
malongwei 5fb6cb8b41 修复ringblk_buf在不使用动态内存时报错的问题 2021-09-01 19:58:23 +08:00
Bernard Xiong bd44c1e590
Merge pull request #4970 from cndabai/master
Remove C Style Command Shell
2021-08-25 19:03:52 +08:00
Bernard Xiong 3dc188fb7a
Merge pull request #4943 from chenyingchun0312/develop
【doc】add the comments of device-ipc completion
2021-08-24 09:57:12 +08:00
chenyingchun0312 39689ea5ed Merge branch 'develop' of https://github.com/chenyingchun0312/rt-thread into develop 2021-08-23 18:54:03 +08:00
陈迎春 f0c963bf53
Merge branch 'RT-Thread:master' into develop 2021-08-23 18:53:42 +08:00
chenyingchun0312 5e02709c55 【doc】update completion.c comments 2021-08-23 18:52:31 +08:00
马志远 221da7f464 Remove C Style Command Shell 2021-08-23 17:30:05 +08:00
Meco Man b39837f480 [ioctl] implement function of getting window's size(TIOCGWINSZ) 2021-08-22 09:36:02 -04:00
guo a98860d146
Merge pull request #4942 from Jackistang/master
[add] add commets for ringbuffer and workqueue.
2021-08-19 09:51:37 +08:00
Jackistang 4c6b4028e3 Update the comments for ringbuffer and workqueue. 2021-08-18 22:51:00 +08:00
Bernard Xiong d71e2ac582
Merge pull request #4484 from mysterywolf/security
[kernel][devices] add security devices
2021-08-18 19:24:58 +08:00
Bernard Xiong 69cd36b5d0
Merge pull request #4905 from mysterywolf/rb
[ringbuffer] rt_ringbuffer_data_len采用局部变量承接,防止出现资源竞争
2021-08-18 19:24:13 +08:00
chenyingchun0312 a6870449ba 【doc】update completion.c comments 2021-08-18 14:10:50 +08:00
Jackistang 3de03a072e 修改 ringbuffer 和 workqueue 注释的语法 2021-08-18 09:44:52 +08:00
Man, Jianting (Meco) 3e6578916f
Merge branch 'master' into security 2021-08-17 16:56:10 -05:00
Jackistang 6173c9d7d5 fix comments error in ringbuffer and workqueue. 2021-08-17 22:44:29 +08:00
chenyingchun0312 7f2aaa210c 【doc】format drivers/src/completion.c 2021-08-16 13:10:26 +08:00
chenyingchun0312 96f773ffa9 【doc】add the annotation of device-ipc completion 2021-08-15 21:27:14 +08:00
Jackistang 99de1a6220 format code 2021-08-14 14:32:58 +08:00
Jackistang 1b7468979f [ringbuffer] 添加 ringbuffer 的接口注释 2021-08-14 13:47:05 +08:00
Jackistang 0b4603d581 [workqueue] 添加了 workqueue 接口的注释 2021-08-14 11:10:43 +08:00
Meco Man 94ed55f34d [workqueue] remove rt_delayed_work_init() 2021-08-01 17:26:01 +08:00
Meco Man 84db60ecfa [sdio] remove rt_mmcsd_blk_init 2021-08-01 07:31:32 +08:00
Meco Man 619fa4d9d8 [ringbuffer] 采用局部变量,防止出现资源竞争 2021-07-31 02:20:20 +08:00
rtthread-bot 26acd64cb1 Merge remote-tracking branch 'rtt_gitee/gitee_master' 2021-07-30 16:26:31 +00:00
Meco Man a25667a7e5 [rtc] add comments 2021-07-30 07:01:09 +08:00
Meco Man 94a9332915 [rtc] 移除rtc_core.c/.h 将内容转移到rtc.c/.h 2021-07-30 03:24:50 +08:00
Meco Man 9e47b95e61 rt_rtc_dev_register -> rt_hw_rtc_register 2021-07-30 02:31:33 +08:00
Meco Man fb31ab9c72 [rtc] localtime 改 localtime_r 2021-07-30 02:03:55 +08:00
Meco Man a8ed7b7769 [workqueue] 将rt_work_sys_workqueue_init函数私有化 2021-07-22 18:24:56 +08:00
arminker 2439232c8a bugfix:write_index bug in rt_ringbuffer_put_force 2021-07-20 15:47:03 +08:00
Bernard Xiong 4919c41527
Merge pull request #4864 from linzhenxing-bit/master
修改mmc初始化错误,将card-》csd写成card-》cid
2021-07-14 17:09:07 +08:00
Bernard Xiong 10308a645b
Merge pull request #4860 from KyleChenjh/serial
[serial_v2] Serial_v2 support device ops feature
2021-07-13 09:05:09 +08:00
guozhanxin 40e7d5a23d Merge remote-tracking branch 'remotes/gitee/master' 2021-07-12 10:14:20 +08:00
@lin12345678 9f9c3a2bb0 修改mmc初始化错误,将card-》csd写成card-》cid 2021-07-09 17:53:07 +08:00
chenjh 22139e66ca [serial_v2] Serial_v2 support device ops feature 2021-07-09 11:27:46 +08:00
iysheng 2bd7e04827 [components][rtc] Add microsecond resolution support with RTC framework V2.0 2021-07-08 22:41:40 +08:00
iysheng a2a7f3c2d9 [components][rtc] Add RTC framework V2.0 to simplify RTC registration process 2021-07-08 22:41:06 +08:00
HubretXie 0fc7158ffb [drivers]serial.c
解决STM32串口使用DMA接收方式时,清空缓存bug
2021-07-01 14:21:06 +08:00
wanghaijing 5d4260ab6d [pm] index should be less than PM_MODLUE_MAX_ID 2021-06-22 23:56:55 +08:00
Bernard Xiong bccdf912c8
Merge pull request #4764 from KyleChenjh/master
[serial] 增加serial_v2版本的框架和基于stm32的串口驱动
2021-06-21 14:29:04 +08:00
chenjh 0613cf8ca2 [serial] 解决serial_close未清除回调接口的问题 2021-06-18 14:54:37 +08:00
rtthread-bot 1e7dfa694f Merge remote-tracking branch 'rtt_gitee/gitee_master' 2021-06-16 09:32:46 +00:00
chenjh 5ac5d92cbb [serial] 优化发送非阻塞时,serial_close未执行rt_completion_done的问题。 2021-06-16 16:55:33 +08:00
Meco Jianting Man 4fd4074617 Merge branch 'RT-Thread:master' into ioctl 2021-06-13 16:19:59 +08:00
Meco Man fbcaa667f8 add sys/ioctl for serial 2021-06-13 12:51:07 +08:00
Meco Man ae0e0bdad4 [cputime] add sys/errno.h 2021-06-12 18:17:18 +08:00
Meco Man 740a810274 [errno][libc] 解决sys头文件在libc未开启时的引入问题 2021-06-12 18:11:51 +08:00
chenjh fac3c5cda1 [serial] 优化dma接收处理流程,解耦驱动调用串口框架的API接口 2021-06-08 09:38:43 +08:00
chenjh d94be14df5 [serial] 增加serial_v2版本的框架和基于stm32的串口驱动 2021-06-08 09:38:43 +08:00
liuduanfei ec1f22b87d 添加 rt_workqueue_critical_work 声明 2021-05-28 17:32:01 +08:00
Meco Man 07cab33b50 add sys/ioctl.h for pipe.c 2021-05-23 00:30:29 +08:00
Bernard Xiong 1c823b3fc0
Merge pull request #4669 from mysterywolf/rtc_pre
[rtc] 将RTC框架内的NTP部分移除
2021-05-12 09:01:47 +08:00
Meco Man 7e7066f741 [Kconfig][driver]删除NTP相关配置 2021-05-09 19:43:50 +08:00
Meco Man e71e693fd1 移除readme关于NTP部分 2021-05-09 16:10:58 +08:00
Meco Man 3fd276bb44 add comment 2021-05-09 15:59:27 +08:00
Meco Man 9de977a046 remove list_date 2021-05-08 23:51:47 +08:00
Meco Man 43e9aec85e 将rt_soft_rtc_init设为私有函数 2021-05-06 23:47:33 +08:00
Meco Man f982d81389 [rtc driver]remove NTP 2021-05-06 23:43:44 +08:00
Bernard Xiong ed900427cd
Merge pull request #4657 from OpenNuvoton/touch_class
[components/drivers/touch] Bypass controlling commands in touch class to device driver.
2021-05-05 21:38:54 +08:00
Meco Man 787e46c6a3 [rtc]调整rtc驱动框架函数位置,功能无影响,为后续新的RTC框架铺路 2021-05-04 13:06:24 +08:00
Wayne Lin 4ed550a96c Bypass controlling commands in touch class to driver. 2021-05-03 13:21:47 +08:00
Aubr.Cool e72008b614 update serial drv 2021-04-27 13:53:14 +08:00
Bernard Xiong 75e13c6866
Merge pull request #4631 from rtthread-bot/rtt_bot
[update] RT-Thread Robot automatic submission
2021-04-25 20:06:24 +08:00
Bernard Xiong ed84d02eb3
Merge pull request #4618 from mysterywolf/key
[stm32 pandora] implement drv_key and modify drv_sdcard
2021-04-22 11:39:15 +08:00
rtthread-bot 8278898783 Merge remote-tracking branch 'rtt_gitee/gitee_master' 2021-04-21 16:41:19 +00:00
guozhanxin 48bf53b6e0 【完善】uac class, 去除 GPL 代码 2021-04-21 16:39:14 +08:00
RiceChen 0b9e01cced add I2C bus control api 2021-04-20 00:26:28 +08:00
Meco Man 8ca492e996 format pin.c 2021-04-17 18:01:20 +08:00
Meco Man 8956b2ea46 [stm32 pandora] implement drv_key and modify drv_sdcard 2021-04-17 16:28:09 +08:00
Jianjia Ma 398718f0f9
Update mmc.c 2021-04-13 18:27:53 +01:00
Jianjia Ma 4e74279d27
Add more trys when switching data width
Try a few times before switching to other data widths. 
The original strategy (simply wait for 20ms ) failed on STM32H743 with an MTFC4GACAJCN-4M (4GB EMMC) when switching data width. 
(unless the debugging info is enabled, which add more delays)
With this EMMC, the fixed delay was set to 50ms for it to be able to work. 

Instead of a fixed delay, I think we better change to trying a few more times with smaller delays.
2021-04-13 18:04:59 +01:00
StackRyan 791ecc093f [fix] fix measurement unit of "percentage" to "permillage" for accuracy. 2021-04-07 16:59:27 +08:00
StackRyan e6f9ecfe26 [add] add spo2 sensor support in drivers/include/drivers/sensor.h and drivers/sensors/sensor.c
Signed-off-by: yuanjie <yuanjie@rt-thread.com>
2021-04-02 21:43:58 +08:00
Bernard Xiong 199f73c72d
Merge pull request #4547 from rtthread-bot/rtt_bot
[update] RT-Thread Robot automatic submission
2021-04-02 18:37:40 +08:00
Meco Man 75ae0a544b NULL -> RT_NULL 2021-04-01 23:04:53 +08:00
Bernard Xiong 50700c8d9b
Merge pull request #4480 from iysheng/serial
[components][serial] fix do RT_DEVICE_CTRL_CLOSE cmd when close seria…
2021-03-31 17:51:58 +08:00
Bernard Xiong 6bb07da6e8
Merge pull request #4439 from OpenNuvoton/sfud_dualio_issue
[sfud] Correct dual_io dummy cycle setting to 4.
2021-03-31 13:53:02 +08:00
rtthread-bot 11dd63e9e9 Merge remote-tracking branch 'rtt_gitee/gitee_master' 2021-03-29 06:39:42 +00:00
wanghaijing 78c370d793 pipe name depend on RT_NAME_MAX 2021-03-27 11:56:50 +08:00
Bernard Xiong 5ded4a1f52
Merge pull request #4476 from xfwangqiang/sensor_pr
[components][sensor]Optimize the Sensor Module
2021-03-23 20:09:26 +08:00
wangqiang c72227680d Fixed formatting issues 2021-03-22 10:11:42 +08:00
Meco Man 80256f6a92 [stm32][pin] 删除无用注释 2021-03-21 01:48:25 +08:00
Meco Man 37a9231e62 [kernel][devices] add security devices 2021-03-19 13:26:12 +08:00
iysheng fcffea4501 [components][serial] fix do RT_DEVICE_CTRL_CLOSE cmd when close serial device regardless of DMA config 2021-03-18 10:51:50 +08:00
wangqiang 3487f2790a 1. 优化pin.h, sensor.h, rtdevice.h,避免反向包含
2. 优化rt_sensor_close函数,polling模式下不需要操作和rt_pin_irq_enable函数
3. 优化rt_device_register和sensor_polling的LOG信息
4. 修复sensor_polling函数打开设备时的标志错误的问题
2021-03-17 17:42:43 +08:00
wangqiang da0e3ed35d 将sensor.h的头文件放置了一份在driver/include下面,rtdevice.h的头文件也包含了sensor.h,简化应用层调用sensor模块 2021-03-17 15:20:54 +08:00
wangqiang 58bb9f5b2e 优化ops的检测代码 2021-03-17 13:44:05 +08:00
xfwangqiang 613f89a372 检测rt_sensor_device下的ops和ops中的函数指针,防止因未定义ops中的函数而造成的问题 2021-03-17 13:44:05 +08:00
dillon-min 247df39bfe
Merge branch 'master' into comp 2021-03-16 20:15:43 +08:00
Bernard Xiong b12615f344
Merge pull request #4427 from mysterywolf/components
[components] auto & manual formatted
2021-03-16 13:53:54 +08:00
Dillon Min 9789e4c930 component: driver: usb: enlarge uconfig_descriptor's data array space
if you add more compositive usb device(more than 4), the data[256]
can't hold all the devices's config information, array out of bounds.

Fixes: 60c27fc4b ("add USB composite and mass storage class features in USB device stack")
Signed-off-by: Dillon Min <dillon.minfei@gmail.com>
2021-03-12 16:30:39 +08:00
Dillon Min effcee25b7 component: driver: usb: Add usb interface string(iInterface) setting
To make compositive usb device string more reansonable, not all devices
just show same "RTT Composite Device" on windows device manager.

add a interface rt_usbd_device_set_interface_string to set respective
interface string.

Signed-off-by: Dillon Min <dillon.minfei@gmail.com>
v1 -> v2: remove all tabs to space, to match rt-thread coding style
2021-03-11 17:29:41 +08:00
Wayne Lin 22ab98a59e [sfud] Correct dual_io dummy cycle setting to 4. 2021-03-10 23:31:14 +08:00
Meco Man 0c9bcefc6c [ioctl] 增加TIOCGWINSZ功能 2021-03-10 20:30:13 +08:00
Bernard Xiong 8bb2817d35
Merge pull request #4366 from whj4674672/wqueue
[fix] wait queue flag 赋的值使用宏
2021-03-09 20:59:28 +08:00
Meco Man ab04030f8f revert 2021-03-08 21:53:02 +08:00
Meco Man 3c05a4e719 [compoenets] auto & manual formatted 2021-03-08 18:19:04 +08:00
Bernard Xiong 7628f36f05
Merge pull request #4376 from LeeChunHei/hid_fix
修復usb host hid和umouse驅動
2021-03-03 13:54:54 +08:00
Bernard Xiong d9b88ddf2b
Merge pull request #4290 from enkiller/0201-1456
优化工作队列体积,临界区保护更加完善
2021-03-03 08:53:27 +08:00
Howard Su 5a184c19b2 Return when i2c transfer 0 messages
msg->flags is accessed without proper intialized msg variable.
2021-02-28 16:42:27 +08:00
LeeChunHei 00727d6b6d provide possibility for multi usb host 2021-02-23 17:05:01 +08:00
LeeChunHei e03eaec462 update to new usb api in hid and mouse source file 2021-02-23 13:42:19 +08:00
Bernard Xiong 4426af03f8
Revert "添加imxrt的pulse encoder和usb host驅動" 2021-02-23 09:44:27 +08:00
Bernard Xiong d9c3459e11
Merge pull request #4295 from LeeChunHei/test_branch
添加imxrt的pulse encoder和usb host驅動
2021-02-23 09:41:27 +08:00
tangyuxin 4f2359d34c [workqueue] 修复临界条件线程意外挂起问题
线程判断任务链表为空时,开中断挂起线程,在挂起线程的过程中,提交的任务不会被执行。

将线程的挂起与恢复放在中断保护内,确保挂起挂起恢复是一个完整的过程
2021-02-22 17:10:33 +08:00
tangyuxin 791b8a35de [workqueue] 系统默认工作队列初始化阶段提前 2021-02-22 11:23:20 +08:00
wanghaijing b39a7c4822 [fix] flag 的赋值使用宏的方式 2021-02-22 10:12:49 +08:00
Bernard Xiong 7d72bdf303
Merge pull request #4314 from mysterywolf/mktime1
[bug][localtime]解决底层驱动格林威治时间与当地时间混乱使用的问题
2021-02-15 09:26:52 +08:00
LeeChunHei b51c6339f0 finish testing 2021-02-13 18:50:58 +08:00
LeeChunHei fa5c8e1502 modifly to use multi usb(not tested) 2021-02-13 18:50:47 +08:00
LeeChunHei 75a4efc406 Add pulse encoder and usb host to imxrt (not tested) 2021-02-13 18:50:37 +08:00
Bernard Xiong 9345ebfa12
Merge pull request #4310 from mysterywolf/pin
[bug][pin] 修复错误码没有为负的错误
2021-02-08 09:09:05 +08:00
Meco Man f073911cd3 解决底层驱动格林威治时间与当地时间胡乱使用的问题 mktime函数改为timegm函数 2021-02-07 21:08:41 +08:00
tangyuxin 83692a54c4 【workqueue】添加函数声明
rt_err_t rt_workqueue_cancel_all_work(struct rt_workqueue *queue);
2021-02-07 11:14:59 +08:00
tangyuxin a96156faf1 [workqueue] 提交正在执行的工作,返回 BUSY 2021-02-07 10:30:25 +08:00
tangyuxin 83dca09e1c [workqueue] 修复提交工作后立即取消,获取无效工作任务的问题
当高优先级任务提交工作后,立即取消。此时队列被唤醒,下面紧接着获取链表中第一个任务。但此时已经是空链表了。

每次线程被唤醒。检查当前任务链表是否未空
2021-02-06 21:54:25 +08:00
tangyuxin 7eabe5c9e9 [workqueue] 取消正在执行的工作返回BUSY 2021-02-06 20:39:52 +08:00
tangyuxin 3ef3fb50af [workqueue] 队列销毁时取消所有工作并释放内核对象 2021-02-06 20:15:50 +08:00
tangyuxin d6b44ca52e [workqueue] 支持取消延时工作任务 2021-02-06 20:08:31 +08:00
Meco Man 23304a77d9 [bug][pin] 修复错误码没有为负的错误 2021-02-06 02:27:18 +08:00