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

cadence_i2c.c DATA register issue #77

Open
libolingjl opened this issue Jan 30, 2023 · 0 comments
Open

cadence_i2c.c DATA register issue #77

libolingjl opened this issue Jan 30, 2023 · 0 comments

Comments

@libolingjl
Copy link

In i2c driver, I use below code to push DATA fifo:
for (int i = 0; i < 14; i++)
REG_DATA = data;
I want the size of the FIFO to be 14 when I finish executing the above statement, because the CPU is much faster than I2C.
But in cadence_i2c.c, each write register triggers the i2c_send, and after the above statement is executed, the FIFO is still empty. This can cause problems for the operation of the drive.

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

No branches or pull requests

1 participant