Jiading Xu
2fcf151a8e
[components][drivers][include][phy] add one more parameter for mulitiple phys
...
- add parameter phy to specify multiple-phy instance
Signed-off-by: Jiading Xu <Jiading.Xu@hpmicro.com>
2024-05-29 22:22:51 +08:00
GUI
6f6b0c3ba0
[DM/feature] Simple NUMA (Non-Uniform Memory Access) ( #9000 )
...
For some CPU memory access devices, that the drivers
will find memory and CPU affinity to config device.
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2024-05-28 14:08:33 +08:00
GUI
de352aee62
[PIC] Make affinity helper interface ( #8995 )
...
* [PIC] Make affinity helper interface
Signed-off-by: GuEe-GUI <2991707448@qq.com>
* [PIC/GIC] Fixup GIC affinity init
GICv2 is not support if current CPU is not startup,
but RT-Thread SMP is startup after the devices init
in the `main` thread.
This patch fixup the cpumask to init once and check
the init status in affinity interface.
Signed-off-by: GuEe-GUI <2991707448@qq.com>
---------
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2024-05-28 09:55:24 +08:00
GUI
f035188094
[OFW] Support ID map interface ( #8994 )
...
The OFW map id is always use in DMA, PCI, IOMMU
bus system to find the device identity. this is
a access interface.
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2024-05-28 09:54:03 +08:00
Fan YANG
2cc2743fc7
[components][drivers][sd] add uhs-i mode support to sd driver
...
- added SDR50, SDR104 and DDR50 support to SD driver
Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
2024-05-27 11:27:03 +08:00
Fan YANG
1a1514640a
[components][drivers][mmc] add HS400 support to mmc driver
...
- added HS400 supprt (both eMMC5.0 and eMMC5.1 flavor are supported)
Signed-off-by: Fan YANG <fan.yang@hpmicro.com>
2024-05-26 12:36:02 +08:00
zms123456
6101f1fd29
[components][driver]add isr statistics ( #8955 )
...
add isr statistics
2024-05-21 09:01:42 +08:00
zms123456
151a96cb88
[components][drivers]fix compiler error in serial dm ( #8927 )
...
fix compiler error in serial dm
2024-05-11 11:16:26 +08:00
Shell
48bd0e49f2
[ipc] support of lockless rt_completion ( #8887 )
...
* [ipc] lockless rt_completion implementation
The new rt_completion implemented by lockless algorithm can improve timer resolution for up to ~12%, compare to sem IPC.
Signed-off-by: Shell <smokewood@qq.com>
* fixup: error
* remove useless changes
---------
Signed-off-by: Shell <smokewood@qq.com>
2024-05-08 09:25:57 +08:00
LZerro
f190cba0ab
[i2c] adjust the timing for I2C initialization
2024-04-29 20:46:12 -04:00
yiyi
4c9d3be98a
[components][drivers] added sensor device lookup function
2024-04-29 17:54:13 -04:00
Yuqiang Wang
c6d20e47ac
[bsp][renesas] Add HMI rw007 initialization configuration by default
2024-04-13 13:32:30 +08:00
Shell
4b0f42c24a
[drivers/serial] Introduce hooker for TTY ( #8733 )
...
In this patch, a hook list has been introduced to address the concerns
regarding coupling issues arising from modifications to the serial code
for integrating TTY logic.
Signed-off-by: Shell <smokewood@qq.com>
2024-04-09 21:36:16 +08:00
zms123456
4ffcbfef2a
[components][drivers]add ofw support i2c
2024-04-07 09:57:38 -04:00
zms123456
d856f77a55
[components][drivers] fix posix tty, and add more baudrate ( #8683 )
...
* serial-tty fix
* v2
2024-04-01 21:23:04 +08:00
Shell
83e95bdff4
sync smart & dfs ( #8672 )
...
Signed-off-by: xqyjlj <xqyjlj@126.com>
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: xqyjlj <xqyjlj@126.com>
2024-03-28 23:42:56 +08:00
kk
2549b82bd6
[pin] pin_read/write rt_uint8_t to rt_ssize_t
2024-03-23 14:50:31 -04:00
zms123456
6b5058ba5c
[components/drivers]update hwtimer ( #8565 )
2024-02-29 22:27:38 +08:00
zms123456
97c5edf947
[component][drivers]add pinctrl/pin-irqchip ( #8383 )
2024-02-29 22:27:27 +08:00
zms123456
195f94ef1d
[components][drivers]add pic-gic ( #8388 )
2024-02-29 09:39:56 +08:00
Shell
71560bafb5
🎯 Sync smart & scheduler codes ( #8537 )
...
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: xqyjlj <xqyjlj@126.com>
2024-02-23 17:49:15 +08:00
yangpeng
02eaf76d7b
[qspi]修复qspi配置未生效问题
2024-02-17 01:07:19 -05:00
fangjianzhou
10b16273b8
[drivers][core] 完善设备模型 ( #8384 )
2024-01-09 23:10:42 +08:00
Meco Man
6cc63626d7
fix some -Wmissing-prototypes warnings
2024-01-02 21:25:26 +08:00
yangpeng
ff1bd3807c
[components][drivers][sensor]暂时禁止使用sensorv2框架
...
sensor v2框架仍在开发中
2023-12-26 20:32:28 +08:00
zms123456
e1fdc13288
[component][drivers]add clk framework ( #8213 )
2023-12-24 19:53:12 +08:00
sulfurandcu
c84d7c5324
fix warning #1295-D Deprecated declaration
2023-12-19 19:02:43 +08:00
xqyjlj
3283f54c7a
🎈 perf: perf rt_hw_interrupt_disable/enable ( #8042 )
...
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: Shell <smokewood@qq.com>
2023-10-25 20:31:25 +08:00
zms123456
d01dd05a0c
[kernel][dm]适配新的设备驱动模型 ( #8075 )
2023-10-18 20:50:30 +08:00
Z8MAN8
19bfdac891
[fix][usb]return data type as rt_ssize_t
...
rt_ssize_t can give negative error code, which follows the unix style correctly
2023-10-11 12:01:20 -04:00
zbtrs
36b79798bd
feat: support sdl2 ( #8048 )
2023-09-25 08:40:03 +08:00
TangZhenye
3e3cf91b77
[修改]:alarm 将年月日也传给驱动层,避免跨天 alarm 失效
2023-09-13 21:32:11 -04:00
heyuanjie87
a98b11747f
[sdio]开启emmc内部cache加快传输 ( #7896 )
2023-08-01 14:48:50 +08:00
Meco Man
bfe9fd3c13
[drivers/ipc] fix the recursive including if legacy enabled
2023-07-28 22:17:40 -04:00
Meco Man
32e50cd68b
[drivers/core] revise the macros of header files
...
the macros is too common to use so that to avoid conflicts
2023-07-28 22:17:14 -04:00
erikchan
0eaa757cff
【dd2.0】move the core header files to include/drivers/core
2023-07-27 11:16:55 +08:00
xqyjlj
0eb75ced70
[time]时钟框架重构 ( #7794 )
2023-07-17 20:11:58 +08:00
sp-cai
0ebec472e1
[components][i2c] 优化 controt 接口格式,增加可用命令 ( #7806 )
...
原来 rt_i2c_control 只能执行 RT_I2C_DEV_CTRL_CLK 单一命令,通过此修改可以支持更多可用命令
2023-07-13 21:57:40 -04:00
ErikChanHub
2f5e4ac27e
【dd2.0】Support the Core API for dd2.0 ( #7791 )
2023-07-13 14:49:35 +08:00
wusongjie
8aa4366cb2
Drivers: Support Open Firmware API and model of PIC
...
We support OFW API to replace fdt old API, and add
IRQ, IO, Platform-Bus, CPUs ... OFW node contorl.
To support work with Device Tree or ACPI in drivers
that use IRQ, we make a programmable interrupt
controller driver's model.
Signed-off-by: GuEe-GUI <GuEe-GUI@github.com>
2023-07-05 16:45:16 +08:00
wusongjie
179157f4e1
Components/drivers: support DM device id management
...
We add the device name and id set api in DM, now driver
could set name like sprintf without know how many devices
it is.
The misc.h and byteorder.h add some macros to developers
that they always use in drivers.
Signed-off-by: GuEe-GUI <GuEe-GUI@github.com>
2023-07-04 13:55:07 +08:00
xiao xie
ba76cb5ef7
[drivers]修复can驱动编译错误 ( #7708 )
2023-06-21 08:52:11 -04:00
Man, Jianting (Meco)
704554f1f9
[sensor-v2]将当前sensor框架revert回v1版本并独立为v2 ( #7698 )
2023-06-18 22:36:53 -04:00
Meco Man
93968942c2
[device][spi] 修复 rt_spi_sendrecv8/16 收发不同时的问题
...
rt_spi_send_then_recv是先发再等待一个独立的消息接收
rt_spi_transfer是收发同时进行
rt_spi_sendrecv8/16应使用rt_spi_transfer而不是rt_spi_send_then_recv
2023-05-22 02:55:46 -04:00
Meco Man
4a7ef40dc7
[serial-v2]fix the data type error
2023-04-19 07:49:46 -04:00
7YZ7
501b22aabe
[HUST CSE] Fix many abnormal symbols in annotations and format code
2023-04-17 22:26:23 -04:00
xqyjlj
970c7c6f7a
🐞 fix(components/drivers): fix cpu timer in multithreading ( #7222 )
...
* 🐞 fix(components/drivers): fix cpu timer in multithreading
* 🎈 perf(components): change double to uint64_t
* 🎈 perf(components): add UL suffix
2023-04-13 16:00:19 +08:00
Meco Man
e9bbc2e349
[adc] modify adc channel data type from rt_uint32_t to rt_int8_t
2023-04-08 22:40:37 -04:00
Meco Man
505023b656
[adc] 增加ADC内置通道通用通道号标识
2023-04-08 22:40:37 -04:00
wdfk-prog
87c57f86f7
[device]修改mtd_nor读写函数返回类型为rt_ssize_t
2023-03-20 18:58:10 -04:00
Meco Man
0f461e870c
[errno code][-RT_ERROR] fix that use RT_ERROR without -
2023-03-20 00:06:16 -04:00
Man, Jianting (Meco)
0275b23638
[i2c] fix the i2c device return error code ( #7035 )
...
* [i2c] fix the i2c device return error code
2023-03-10 23:44:03 -05:00
Zxy
c8b30bf31a
[device]修改i2c读写函数返回类型为rt_ssize_t ( #7029 )
2023-03-09 23:42:58 -05:00
Zxy
f5798d9917
[pin][5.0.0] 修正pin框架数据类型使用不当 ( #6934 )
2023-02-26 21:17:51 -05:00
liYangYang
93d572dee6
[spi][5.0.0] 修正SPI设备框架中,对函数返回值类型使用不恰当的情况 ( #6937 )
2023-02-26 21:09:07 -05:00
yangfasheng
ff5894922a
update rtdevice.h add lcd
2023-02-21 13:12:54 -05:00
zhkag
0f85648cfb
Improve timer accuracy and realize ( #6926 )
...
* add cputimer frame
* add cputime sleep
* ctime use cputime
* Processing cputime has no timeout function
* Migration cputime Code
* formatting file
* 整理代码
* add document copyright information
* 改 cputime_timer 为 cputimer
* 简化 _cputimer_list 初始化
* rt_cputimer_create -> rt_cputimer_init
* Remove RT_USING_CPUTIME and code cleanup.
* Remove RT_USING_CPUTIME in cputimer.c
* Set set_next_timeout as static function.
---------
Co-authored-by: Bernard Xiong <bernard.xiong@gmail.com>
2023-02-15 20:46:22 +08:00
liYangYang
1eec660b12
[spi]添加rt_spi_bus_attach_device_cspin 函数 ( #6916 )
...
这个函数实现了原先的挂载功能,并且调用pin框架,初始化cs引脚,是一个功能相对完善的挂载函数。用户也能更简单的使用。
该函数取代rt_spi_bus_attach_device,后续rt_spi_bus_attach_device会被逐渐淘汰掉。新的BSP以及软件包应当使用rt_spi_bus_attach_device_cspin新函数。
STM32L475潘多拉测试通过。
2023-02-11 22:14:54 -05:00
zhkag
657cbfdac7
修复编译警告
2023-02-09 15:21:17 +08:00
螺丝松掉的人
20459ec4d3
[ringbuffer] ringbuffer size boost to 32bit ( #6915 )
...
* ringbuffer size boost to 32bit
* 添加ringbuffer测试demo
related: #682
----
Co-authored-by: Zxy <1308465141@qq.com>
Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2023-02-08 22:55:52 -05:00
Meco Man
f58d3c5200
rt_device_write/read return data type as rt_ssize_t
...
rt_ssize_t can give negative error code, which follows the unix style correctly
2023-02-07 21:43:57 -05:00
zhkag
7c1d6ffd3c
add clock_cpu_settimeout function
2023-02-07 15:51:11 +08:00
liYangYang
7ff64c1cfd
[stm32][spi] spi attach函数问题解决方案 ( #6864 )
...
attach #6819
2023-01-18 00:27:08 -05:00
Shell
b2402029b2
[rt-smart][fix/lwp] don't restore terminal for background lwp ( #6847 )
...
* [fix/lwp] don't restore term for background lwp
2023-01-13 09:48:43 +08:00
xieyangrun
21472e3ff0
fix cputime and ctime.
2023-01-10 10:03:35 +08:00
liYangYang
7c05d8517c
[STM32][SPI]解决挂载函数里面不同bsp对uaer_data的滥用 ( #6819 )
...
* [spi]attach 片选引脚依赖pin框架
* 修改attach函数
2023-01-07 23:03:42 -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
d2bab6d7ad
[sensor] add LSC chip vendor
2022-12-26 02:10:30 -05: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
Meco Man
9860b168b8
[sensor] 增加新传感器类型和单位
2022-12-12 22:44:07 -05: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
Yohozzy
6fcbd418e5
canfd帧结构加入 brs控制位 ( #6701 )
2022-12-07 01:49:44 -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
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
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
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
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
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
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
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
067315ff40
[phy] fix the PHY_FULL_DUPLEX conflicts
2022-08-03 22:45:27 -04:00
Tangyuxin
f82705db1d
[touch] 调整触摸头文件至 rtdevice.h 中 ( #6180 )
2022-07-23 11:48:26 +08:00
Man, Jianting (Meco)
5b6a257c20
chore: fix a typo ( #6154 )
2022-07-10 18:00:12 +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
Man, Jianting (Meco)
02b176f8cb
[arduino] add comment ( #6016 )
2022-06-04 13:20:30 +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
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