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

UAC2: fix feedback EP buffer alignment. #1965

Merged
merged 1 commit into from Mar 21, 2023
Merged

Conversation

HiFiPhile
Copy link
Collaborator

Describe the PR
Which cause error in get_buf_offset() of lpc_ip3511.

@@ -337,6 +336,7 @@ typedef struct
}compute;

} feedback;
CFG_TUSB_MEM_ALIGN uint32_t feedback_value; // Feedback value for asynchronous mode (in 16.16 format).
Copy link
Owner

Choose a reason for hiding this comment

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

we can put the CFG_TUSB_MEM_ALIGN to the struct feedback, which will make the value as 1st member to be aligned correctly ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes that will work. I was thinking to avoid aligment on struct member so I moved value outside, but it should be ok.

Copy link
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

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

look great, thank you

@hathach hathach merged commit ec9c666 into hathach:master Mar 21, 2023
33 checks passed
@HiFiPhile HiFiPhile deleted the align branch March 31, 2023 06:50
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.

None yet

2 participants