Skip to content

Commit 21bbb9c

Browse files
bsp: Infineon:Update drv_soft_i2c.c
1 parent fe13089 commit 21bbb9c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bsp/Infineon/libraries/HAL_Drivers/drv_soft_i2c.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*
66
* Change Logs:
7-
* Date Author Notes
8-
* 2022-07-20 Rbb666 first version
7+
* Date Author Notes
8+
* 2022-07-20 Rbb666 first version
9+
* 2025-05-30 Passionate0424 Rename the initialization function
910
*/
1011

1112
#include <board.h>
@@ -164,7 +165,7 @@ static rt_err_t ifx_i2c_bus_unlock(const struct ifx_soft_i2c_config *cfg)
164165
}
165166

166167
/* I2C initialization function */
167-
int rt_hw_i2c_init(void)
168+
int rt_hw_soft_i2c_init(void)
168169
{
169170
rt_size_t obj_num = sizeof(i2c_obj) / sizeof(struct ifx_i2c);
170171
rt_err_t result;
@@ -187,6 +188,6 @@ int rt_hw_i2c_init(void)
187188

188189
return RT_EOK;
189190
}
190-
INIT_BOARD_EXPORT(rt_hw_i2c_init);
191+
INIT_BOARD_EXPORT(rt_hw_soft_i2c_init);
191192

192193
#endif /* RT_USING_I2C */

0 commit comments

Comments
 (0)