From edfc7d62010729b9f82dc6f61855a51df0347566 Mon Sep 17 00:00:00 2001 From: Koen De Vleeschauwer Date: Wed, 21 Aug 2024 16:42:08 +0200 Subject: [PATCH] [bsp/at32] static dma_isr() in hard_i2c and spi --- bsp/at32/libraries/rt_drivers/drv_hard_i2c.c | 2 +- bsp/at32/libraries/rt_drivers/drv_spi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bsp/at32/libraries/rt_drivers/drv_hard_i2c.c b/bsp/at32/libraries/rt_drivers/drv_hard_i2c.c index b6f5202e5e..ad62ce866f 100644 --- a/bsp/at32/libraries/rt_drivers/drv_hard_i2c.c +++ b/bsp/at32/libraries/rt_drivers/drv_hard_i2c.c @@ -1337,7 +1337,7 @@ void i2c_err_isr(struct at32_i2c_handle *handle) i2c_interrupt_enable(handle->i2c_x, I2C_ERR_INT, FALSE); } -void dma_isr(struct at32_i2c_handle *handle) +static void dma_isr(struct at32_i2c_handle *handle) { volatile rt_uint32_t reg_sts = 0, index = 0; struct dma_config *dma = RT_NULL; diff --git a/bsp/at32/libraries/rt_drivers/drv_spi.c b/bsp/at32/libraries/rt_drivers/drv_spi.c index 16125ddd46..a127ac8115 100644 --- a/bsp/at32/libraries/rt_drivers/drv_spi.c +++ b/bsp/at32/libraries/rt_drivers/drv_spi.c @@ -571,7 +571,7 @@ static void at32_spi_dma_init(struct at32_spi *instance) } } -void dma_isr(struct dma_config *dma_instance) +static void dma_isr(struct dma_config *dma_instance) { volatile rt_uint32_t reg_sts = 0, index = 0;