Skip to content

Commit ad97cfc

Browse files
committed
fix adc issue
1 parent 042700c commit ad97cfc

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

bsp/gd32/arm/gd32e230-lckfb/.ci/attachconfig/ci.attachconfig.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,9 @@ hw_drv_onchip.adc0:
1717
hw_drv_onchip.spi0:
1818
kconfig:
1919
- CONFIG_BSP_USING_SPI=y
20-
- CONFIG_BSP_USING_SPI0=y
20+
- CONFIG_BSP_USING_SPI0=y
21+
hw_drv_onchip.i2c0:
22+
kconfig:
23+
- CONFIG_BSP_USING_I2C0=y
24+
- CONFIG_BSP_I2C0_SCL_PIN=22
25+
- CONFIG_BSP_I2C0_SDA_PIN=23

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct rt_adc_device adc2;
3535
static const struct gd32_adc adc_obj[] = {
3636
#ifdef BSP_USING_ADC0
3737
{
38-
#if defined SOC_SERIES_GD32E230x
38+
#if defined SOC_SERIES_GD32E23x
3939
ADC,
4040
RCU_ADC,
4141
{

0 commit comments

Comments
 (0)