Skip to content

Commit ad5abb0

Browse files
committed
[fix] 修正Copilot检查出的bug
1 parent 6c1c0ea commit ad5abb0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bsp/gd32/arm/gd32527I-eval/board/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ menu "On-chip Peripheral Drivers"
268268

269269
config BSP_USING_SPI2
270270
bool "Enable SPI2 BUS"
271-
default
271+
default n
272272

273273
config BSP_USING_SPI3
274274
bool "Enable SPI3 BUS"

bsp/gd32/arm/libraries/gd32_drivers/drv_spi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ static const struct gd32_spi spi_bus_obj[] = {
158158
RCU_GPIOG,
159159
RCU_GPIOG,
160160

161-
RCU_GPIOG,
161+
RCU_GPIOG,
162162
&spi_bus5,
163163
GPIOG,
164164
GPIOG,
@@ -392,9 +392,9 @@ static rt_ssize_t spixfer(struct rt_spi_device* device, struct rt_spi_message* m
392392
}
393393
}
394394

395-
LOG_D("%s transfer prepare and start", spi_drv->config->bus_name);
395+
LOG_D("%s transfer prepare and start", spi_device->bus_name);
396396
LOG_D("%s sendbuf: %X, recvbuf: %X, length: %d",
397-
spi_drv->config->bus_name,
397+
spi_device->bus_name,
398398
(uint32_t)message->send_buf,
399399
(uint32_t)message->recv_buf, message->length);
400400

0 commit comments

Comments
 (0)