最新代码

This commit is contained in:
lmx
2025-11-13 09:50:42 +08:00
parent c88cb70bb1
commit 5e587e0527
29 changed files with 166924 additions and 166812 deletions

View File

@ -521,7 +521,8 @@ const struct hw_iic_config hw_iic_cfg[] = {
{IO_PORTA_05, IO_PORTA_06}, //group d
*/
// .port = TCFG_HW_I2C0_PORTS,
.port = {IO_PORTC_04,IO_PORTC_05}, // portB: scl、sda
// .port = {IO_PORTC_04,IO_PORTC_05}, // portB: scl、sda
.port = {IO_PORTB_04,IO_PORTB_05}, // portA: scl、sda
.baudrate = TCFG_HW_I2C0_CLK, //IIC通讯波特率
.hdrive = 0, //是否打开IO口强驱
.io_filter = 1, //是否打开滤波器(去纹波)

View File

@ -40,9 +40,12 @@
'B': IO_PORTA_09 IO_PORTA_10
'C': IO_PORTA_07 IO_PORTA_08
'D': IO_PORTA_05 IO_PORTA_06
具体要选择哪个iic口去board_jl701n_demo.c中设置hw_iic_cfg
*/
#define TCFG_HW_I2C0_PORTS 'B'
#define TCFG_HW_I2C0_CLK 100000 //硬件IIC波特率
#define TCFG_HW_I2C0_CLK 4000000 //硬件IIC波特率:100k
//*********************************************************************************//
// 硬件SPI 配置 //