Skip to content

bsp: Infineon:Update drv_soft_i2c.c #10351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions bsp/Infineon/libraries/HAL_Drivers/drv_soft_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2022-07-20 Rbb666 first version
* Date Author Notes
* 2022-07-20 Rbb666 first version
* 2025-05-30 Passionate0424 Rename the initialization function
*/

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

/* I2C initialization function */
int rt_hw_i2c_init(void)
int rt_hw_soft_i2c_init(void)
{
rt_size_t obj_num = sizeof(i2c_obj) / sizeof(struct ifx_i2c);
rt_err_t result;
Expand All @@ -187,6 +188,6 @@ int rt_hw_i2c_init(void)

return RT_EOK;
}
INIT_BOARD_EXPORT(rt_hw_i2c_init);
INIT_BOARD_EXPORT(rt_hw_soft_i2c_init);

#endif /* RT_USING_I2C */
Loading