-
Notifications
You must be signed in to change notification settings - Fork 571
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
Add batch read-write methods for GPIO #2148
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from an implementation point of view, but this has broken the test suite. Could get a bit nasty to fix, because Span<T>
cannot be part of a method that is mocked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. We'll discuss it in the next team meeting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Once merge, I can definitely get some perf improvements for the FT family as well.
Helix tests are still failing. The baseline comparison tests can be ignored for now, that's easy to clarify and fix. |
I'm a bit puzzled about this compilation error. Why would the "protected internal" of the base class be considered as "public" in the compilation process, causing the compilation error CP0019? |
@HumJ0218 Can you show exactly what change causes this? Also, are you sure you meant CP0019? I cannot find this error code. What exactly is reported? |
|
Oh, that. That's just our compatibility check. It verifies that the build doesn't break backwards compatibility against the previous release. Since changing a method from public to protected is a breaking change, it complains. In this case, I think we're fine with accepting that breaking change and you can update the configuration accordingly. Run the following command to automatically update the suppressions for this warning:
It should update the file |
[Triage] @HumJ0218 is the use case still valid? If yes, can you please address the conflict and adjust the different elements? If no, we will close the PR which can anyway always been reopened. |
for #2147
The original
public void Write(ReadOnlySpan<PinValuePair> pinValuePairs)
andpublic void Read(Span<PinValuePair> pinValuePairs)
inGpioController
were moved toGpioDriver
, and were made overrideable to support a more efficient batch read-write method implementation in specific GPIO driver classes.Microsoft Reviewers: Open in CodeFlow