SCZeiDan
d78429eb8e
[stm32] i2c hard driver fixup:增加硬件I2C传输超时等待时间
...
问题:
在使用硬件 I2C 驱动进行音频模块 WM8978 配置时,发现连续 rt_i2c_transfer 进行 I2C 传输时发现,连续多次调用 rt_i2c_transfer 会出现丢包现象;溯源发现是每次使用 rt_i2c_transfer 传输2字节,传输频率过高导致底层 HAL_I2C_Master_Seq_Transmit_DMA 报错 HAL_BUSY;
现象:
rt_completion_wait超时等待完成之后,I2C仍处于HAL_I2C_STATE_BUSY_TX状态,且后续第二次运行至HAL_I2C_Master_Seq_Transmit_DMA时会直接返回HAL_BUSY,从而直接 goto out; 退出而不会再次进行超时等待;
* drv_hard_i2c.c: 修复325行缺失'}'语法错误;更改HAL_I2C_xx_Transimt_xx调用中目标设备地址值;i2c_hard_config.h: 添加STM32F系列芯片xx_DMA_CONFIG宏定义;
* 回溯I2C设备地址传参处(msg->addr<<1)修改;
* fixup: 增加硬件I2C传输延时,解决连续传输导致HAL_BUSY状态;
2024-05-04 12:51:27 -04:00
LZerro
f190cba0ab
[i2c] adjust the timing for I2C initialization
2024-04-29 20:46:12 -04:00
LZerro
a92f971267
[spi] soft_spi_pin_init loop variable is initialized to 0
...
The loop variable in the function 'drv_soft_spi:xx_pin_init()' is initialized to 0.
2024-04-29 17:49:20 -04:00
Meco Man
e548a99da4
[ci] set at_device package as strict mode
2024-04-29 10:56:05 +08:00
SCZeiDan
7ca2ebc51a
[bsp][stm32] fix bugs of i2c hardware drivers
...
在STM32F429IGTx设备上使用硬件i2c驱动程序师遇到以下几个问题:
语法错误:drv_hard_i2c.c 行67、68中i2c_handle未正常替换过来,估计是上个版本对变量重命名后因为宏定义忽略了此处修改;
语法错误:drv_hard_i2c.c 行326中缺少一个"}"导致编译出错;
初始化i2c设备过程中对双地址选项进行设置时(i2c_handle->Init.OwnAddress2Masks = I2C_OA2_NOMASK),STM32F4系列SOC没有这个配置定义,于是我直接将双地址模式关闭了(i2c_handle->Init.DualAddressMode = I2C_DUALADDRESS_DISABLE);
初始化i2c设备(DMA方式)过程中发现i2c_hard_config.h文件中未定义DMA通道配置;
主要补丁如下:
修复硬件i2c驱动代码中语法错误(drv_hard_i2c.c行67、68、326);
关闭默认i2c双地址模式(drv_hard_i2c.c行75:I2C_DUALADDRESS_DISABLE);
添加硬件i2c驱动配置文件DMA相关配置项,增加对SOC_SERIES_STM32F2、SOC_SERIES_STM32F4、SOC_SERIES_STM32F7系列芯片配置DMA_CHANNEL的适配
2024-04-24 01:42:03 -04:00
wdfk-prog
184bfb447b
[STM32][SPI-DMA]特定条件下接收错误
2024-04-22 21:15:38 -04:00
Meco Man
d68e47eb25
[klibc] organize and renmae macros, and add CI check
2024-04-20 21:52:49 -04:00
Shell
8c4db32d04
fixup: debug
2024-04-19 21:30:12 -04:00
Rbb666
3c9b7b1f96
[bsp][renesas][stm32]Fix some bsp probelm in 5.1.x.
2024-04-18 20:32:47 -04:00
Meco Man
a225d26a8a
[bsp][stm32f103-fire-arbitrary] fix missing header file
2024-04-16 01:39:30 -04:00
Meco Man
d10fb37c05
[bsp] revert delete of stm32f407-sparkfire RTduino pinout
2024-04-15 22:41:00 -04:00
yuanzihao
1a8b8522f7
[BSP][STM32]add stm32f407-lckfb-skystar
2024-04-13 08:00:15 -04:00
wirano
dbce35ba2b
bsp/stm32: remove duplicate if condition
2024-04-12 19:01:26 -04:00
Shicheng Chu
ca90d3f6c3
[bsp][stm32]fix stm32f103 default console uart name
2024-04-11 18:49:10 -04:00
LZerro
e50fbe8b94
[SBP] Stm32F407-rt-spark adapts to RTduino
2024-04-11 18:46:52 -04:00
StackYuan
83bd05391f
[add] Readme doc for stm32h7s7-disco BSP ( #8767 )
...
[bsp][stm32] add English version readme doc for BSP stm32h7s7-st-disco.
2024-04-11 14:55:34 +08:00
StackYuan
87d47bf935
[fix] fixup spaces and add in ci.
2024-04-10 16:04:28 +08:00
StackYuan
187e69a698
[BSP] add bsp for st's new platform stm32h7s7-st-disco.
...
[drv] STM32H7RSxx_HAL bsp fixed and update.
[add] bsp stm32h7s7-dk README.md
2024-04-10 16:04:28 +08:00
Yuqiang Wang
d08ae0bfd1
[driver][soft-spi] spi device driver framework adds pin init function function
...
为什么提交这份PR (why to submit this PR)
ps:在设备初始化阶段不应该存在对硬件的操作
你的解决方案是什么 (what is your solution)
ps:添加一个pin_init函数,在spi设备使用时调用该函数来完成硬件引脚的状态初始化,而不是在设备初始化阶段对硬件进行操作,已经在瑞萨HMI上通过验证
2024-04-09 18:33:29 -04:00
Meco Man
38204386b3
[ci] add vi package checking ( #8737 )
...
* [ci] add vi package checking
* [ci] add MultiButton software package checking
2024-04-09 21:36:04 +08:00
Dyyt587
34fb8d2f10
[bsp][stm32] fix hardware i2c driver bug
2024-04-01 23:21:09 -04:00
wdfk-prog
5cfa9c6390
[bsp][stm32][spi] 优化H7 DMA数据非字节对齐的处理流程
2024-03-31 20:30:56 -04:00
Meco Man
d2c12e2da8
[RTduino] change the pinout group name
2024-03-29 21:49:13 +08:00
Shicheng Chu
3ff4fe5395
[bsp][stm32] drv_rtc.c中包含drv_common.h 避免找不到 error_handle实现 ( #8676 )
2024-03-26 00:57:03 -04:00
Meco Man
3782127116
[bsp] format drivers code
2024-03-24 09:18:25 +08:00
Meco Man
6a9c42a19d
[bsp][drv_gpio] fix the error code return when pin number is illegal
2024-03-24 09:18:25 +08:00
kk
2549b82bd6
[pin] pin_read/write rt_uint8_t to rt_ssize_t
2024-03-23 14:50:31 -04:00
Meco Man
3f26998f9c
[bsp] update projects
2024-03-21 11:23:29 +08:00
Ruixuan Zhang
bc85f5aaf4
[bsp][stm32]Add stm32l431-tencentos-tiny-EVB_MX+ remaining drivers
2024-03-19 19:06:54 -04:00
Jiabing
c8851d15a8
[bsp][ST]Update mdk project
2024-03-19 08:07:33 -04:00
rbb666
1162b55c86
[bsp][stm32]Update mdk project
2024-03-19 08:04:12 -04:00
rbb666
08d75e613f
[bsp][stm32]Update stm32l5 mdk project
2024-03-19 08:01:39 -04:00
Yuqiang Wang
4d7071a1d5
[bsp][stm32] Standardize the pin configuration
2024-03-19 08:01:19 -04:00
Meco Man
6071e8aa14
[bsp][stm32g474-nucleo][RTduino] support SPI
2024-03-17 12:30:56 -04:00
Meco Man
cd1c08b3cd
[bsp][RTduino] format Kconfig ( #8621 )
2024-03-17 19:49:34 +08:00
Meco Man
aa49e8ada9
[bsp][stm32pandora] fix SConscript gramma issues
2024-03-16 23:31:54 -04:00
Meco Man
9ac8b47eb2
[sensor-v2] enable sensor v2
...
fix the confilcts with sensor v1
2024-03-16 23:31:54 -04:00
Meco Man
b3e073864f
[stm32][stm32f103-100ask-pro] fix missing drv_gpio.h in spi_flash_init.c
2024-03-16 23:31:40 -04:00
Meco Man
7f3f6e9beb
[bsp][stm32f469-disc][RTduino] fix Kconfig
2024-03-16 10:21:58 -04:00
Meco Man
7218127a83
[bsp][stm32f072-nucleo][RTduino] support SPI
2024-03-16 10:21:58 -04:00
Ruixuan Zhang
5a6b5be77c
[bsp][stm32] add a new stm32L431_tencentos bsp ( #8613 )
2024-03-15 22:19:14 -04:00
刘伟
0ff23d8951
[bsp][stm32] eth driver support phy YT8512C
2024-03-15 19:12:46 -04:00
Meco Man
adaa44c911
[bsp][stm32f469-disco] support RTduino SPI
2024-03-09 21:43:23 -05:00
Meco Man
b85c4cade2
[bsp][stm32] format code of i2c hardware drivers
2024-03-08 13:29:32 +08:00
Dyyt587
4e1626703f
[bsp][stm32] add hardware i2c driver
2024-03-07 22:59:47 -05:00
Meco Man
384a370c9a
[stm32][tim-config] fix F4 TIM6's IRQ source in STM32F412
2024-03-08 09:39:57 +08:00
Meco Man
5f87e10032
[stm32f469-disc] support RTduino Tone feature
2024-03-08 09:39:57 +08:00
Meco Man
1a240798fa
[RTduino] pins_arduino.h add limit check
2024-03-08 09:39:57 +08:00
Meco Man
e961b051f9
[stm32f412-nucleo] support RTduino Tone feature
2024-03-08 09:39:57 +08:00
Meco Man
0400fffafc
[stm32f412] support RTduino SPI
2024-02-23 19:50:33 -05:00
Meco Man
a8629421ba
[ci][attach] add AT CI check attach files
2024-02-18 21:28:45 -05:00
Meco Man
35eea4bc46
[ci][arduino] 将Arduino库CI检查平台由STM32F411改为412 ( #8534 )
2024-02-13 21:51:23 +08:00
Shicheng Chu
cfcc72ee8a
[bsp][stm32] add English README for stm32h5
2024-02-04 09:54:27 -05:00
yangpeng
25d3136d02
fix MDK AC5 build warnings
2024-02-03 21:43:08 -05:00
yangpengya
b3da34b784
[bsp][stm32]完善stm32g0系列部分外设中断处理 ( #8509 )
2024-01-27 09:56:52 +08:00
kurisaw
ac84f65e73
add bsp ci check and other modify with rt-spark
2024-01-23 16:57:03 +08:00
Shicheng Chu
3ea8e08e2d
[bsp][stm32]: Add ADC and PWM support for H5 ( #8495 )
2024-01-20 19:30:03 +08:00
kurisaw
345ce24e31
[bsp][renesas] RTduino configuration update
...
sync update
some optimize
[bsp][driver] Updates the naming convention of the i2c configuration item
2024-01-18 11:57:51 +08:00
yangpeng
dfd4ae5464
[bsp][stm32]fix stm32f2 usart driver
2024-01-11 23:58:46 +08:00
Rbb666
8b5831cb64
[bsp][stm32]fix stm32f469 sdram not enable problem.
2024-01-10 18:12:57 +08:00
Meco Man
fa2881ecd3
[ci][bsp] add strict mode
2024-01-10 18:08:09 +08:00
Meco Man
74ac685b9a
[stm32] fix missing headfer files
2024-01-08 18:54:43 +08:00
Meco Man
980619ed2c
[ci][arduino] add 9 in 1 sensor shield package check
2024-01-08 18:52:49 +08:00
Meco Man
179c39d68d
[stm32][f469-discovery][ci] support lvgl checking
2024-01-07 22:46:12 +08:00
Meco Man
8c5df321d8
[stm32] fix stm32 bsp warnings and errors
2024-01-07 22:46:12 +08:00
Meco Man
0a3a10e5bb
[stm32] fxi gpio header files included
2024-01-07 22:46:12 +08:00
褚仕成
32be3c4a30
[bsp][stm32]: add stm32h563 rtduino
2023-12-30 18:57:36 +08:00
Meco Man
8aacf19bb9
[rtduino][ci] add all libraries into CI check list
2023-12-29 22:18:39 +08:00
Shicheng Chu
be2119e0f5
[bsp][stm32]: add stm32h503 rtduino ( #8448 )
2023-12-29 19:46:28 +08:00
Meco Man
1bb277ef4b
[ci] add online packages checking in stm32f411 nucleo
2023-12-28 23:51:56 +08:00
guotong ma
2d55efba84
[ci][attachconfig]support subfolders
2023-12-28 23:51:56 +08:00
Meco Man
0ad5c9585d
[stm32][rt-spark] support nano version
2023-12-28 14:03:29 +08:00
Yuqiang Wang
975af5fd54
[ci][stm32f407-spark] add attach config CI check ( #8431 )
2023-12-27 23:06:46 +08:00
Meco Man
c2e4b73114
[ci][stm32f407-explorer] add file system CI checking
2023-12-27 18:43:40 +08:00
Meco Man
7b4592c2d1
[ci][stm32l475-pandora] add attach CI checking for sdcard
2023-12-27 18:17:30 +08:00
Meco Man
ed4d037d7b
[ci][stm32f407] add attach config CI check
2023-12-26 23:13:08 +08:00
yangpengya
76acc4146b
[bsp][stm32]eth driver support phy YT8512C
2023-12-26 20:56:31 +08:00
Meco Man
37fea9d549
[stm32-pandora] add attach config CI check
2023-12-25 23:24:30 +08:00
Meco Man
58d0db9875
[stm32][ci] add RTduino CI checking
2023-12-25 08:20:58 +08:00
Meco Man
eda1ef3b7c
[stm32] add nano attach config for CI
2023-12-25 08:20:58 +08:00
vacabun
2693e7e15a
[ci]Add bsp attachconfig check
2023-12-24 22:43:40 +08:00
Meco Man
fe35011fc5
[stm32][drv_tim.c] fix errors when TIMx doesn't exist
2023-12-24 20:03:58 +08:00
褚仕成
4a7f41531f
[bsp][stm32] add board identification macros
2023-12-24 17:01:41 +08:00
Shicheng Chu
712e94a3cc
[bsp][stm32]: add nucleo-stm32h503rb ( #8394 )
2023-12-23 22:39:11 +08:00
Meco Man
4d22242ea5
[stm32][rtduino] add drv_gpio.h for pins_arduino.c
2023-12-23 14:36:30 +08:00
Supper Thomas
6d1fdde1ff
add tim8
2023-12-18 20:29:56 +08:00
Meco Man
0a1566661f
[bsp][stm32] add board identification macros
2023-12-18 20:29:24 +08:00
Supper Thomas
04b2c81745
[BSP/STM32] add support of RTC in g491 ( #8377 )
2023-12-17 21:44:25 +08:00
Meco Man
4658267117
[bsp][ci] add attach config files
2023-12-15 18:25:14 +08:00
Fu You
a1df90dcf0
[bsp] 修复bsp自带的lvgl移植 ( #8357 )
2023-12-10 23:22:16 +08:00
Supper Thomas
32342c6995
[bsp/stm32g491] add tim and iwdog
2023-12-08 18:01:45 +08:00
Meco Man
1b0dae2bb0
[stm32] support nano version
...
- G0
- G4
- L0
- L4
2023-12-05 23:22:19 +08:00
zhkag
474a55ea36
【bsp/rt-spark】移除 ETH 并添加 ADC 初始化
2023-12-05 21:48:19 +08:00
Supper Thomas
f510a65f93
[bsp/stm32/stm32g491] Add nucleo of stm32g491
2023-12-05 21:33:41 +08:00
Meco Man
bb66d1ea50
[bsp][stm32][nano] support nano version
...
stm32 BSPs to support nano version (RT_USING_NANO)
这个commit支持到stm32f7之前的BSP
2023-12-03 21:25:00 +08:00
Meco Man
860094e893
[stm32] split stm32 drivers as normal and nano drivers
...
- move all normal drivers (devices framework drivers) into drivers
folder.
- create nano folder for nano drivers
nano drivers are only for a simply wrap of the HAL function, and
not seek for adopting rt-thread devcies framework.
- provide unified nano console and GPIO drivers.
2023-12-03 21:25:00 +08:00
Meco Man
031a81a98e
[stm32][nano] stm32l475-pandora support nano version
2023-12-01 14:43:05 +08:00
Meco Man
53aa771aa5
[stm32][nano] stm32f103-bluepill support nano version
2023-11-30 11:39:34 +08:00
TamapChn
3ea3f3447e
[bsp][stm32] 修复 encoder驱动 编码器数值的计算问题
2023-11-26 18:00:01 +08:00
mengplus
0396b52db0
fix(spi):多个SPI公用一个ops.data
2023-11-23 09:05:45 -05:00