Skip to content
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

[fix] use new i2c interface for esp32_p4_function_ev_board. (BSP-545) #385

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

100312dog
Copy link

@100312dog 100312dog commented Sep 2, 2024

ESP-BSP Pull Request checklist

Note: For new BSPs create a PR with this link.

  • Version of modified component bumped
  • CI passing

Change description

BSP uses old i2c interface. when another component such as esp-video uses new i2c interface. They will conflict.

@CLAassistant
Copy link

CLAassistant commented Sep 2, 2024

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot changed the title [fix] use new i2c interface for esp32_p4_function_ev_board. [fix] use new i2c interface for esp32_p4_function_ev_board. (BSP-545) Sep 2, 2024
@tore-espressif
Copy link
Collaborator

@100312dog Thank you for the PR! Could you please bump version in https://github.com/espressif/esp-bsp/blob/master/bsp/esp32_p4_function_ev_board/idf_component.yml to 4.0.0?

cc @espzav

@espzav
Copy link
Collaborator

espzav commented Sep 3, 2024

HI @100312dog, thank you for this PR. We are discussing solution for support old and new driver for I2C in BSP.

Copy link
Collaborator

@espzav espzav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@100312dog Thank you for this PR. I left some comments.

static TaskHandle_t usb_host_task; // USB Host Library task
i2c_master_bus_handle_t bsp_i2c_handle = NULL; // Global i2c master bus handler
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, can we add get function like this:

i2c_master_bus_handle_t bsp_i2c_get_handle(void)

and this:

i2c_master_bus_handle_t bsp_i2c_get_handle(void);

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants