Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

hierophect
Copy link
Collaborator

This PR issues a general cleanup of the BusIO module to account for recent changes to the pin claiming structure, and issues fixes to a number of bugs and other minor feature requests. All changes are being stress-tested across I2C, SPI, UART, and DigitalIO to hit a baseline level of guaranteed functionality.

It is not currently ready for merge as I'm still tangling with a number of serious issues during testing, including an ugly startup hang, but I'm opening it up to style review and other concerns.

Resolves: #2485
Resolves: #2483
Resolves: #2480
Resolves: #2478

@hierophect hierophect added the mimxrt10xx iMX RT based boards such as Teensy 4.x label May 27, 2020
@tannewt
Copy link
Member

tannewt commented May 27, 2020

Please let me know when the UART changes are excluded from this diff and I'll take a look. Thanks!

@arturo182
Copy link
Collaborator

arturo182 commented May 27, 2020

Why does this resolve #2478? 😅

@hierophect
Copy link
Collaborator Author

@arturo182 Haven't found issues so far. Waiting on really stress testing it again until after I solve the other bugs but I'd like to include it as a part of this cleanup. I'd like to get rid of any issue that's just "I haven't checked this 100% yet" and replace it with real bugs if necessary.

@arturo182
Copy link
Collaborator

Ah I see, makes sense, was just confused how busio cleanup was resolving AnalogIn testing, but now I get that this is more of a general cleanup :)

@hierophect hierophect marked this pull request as ready for review May 29, 2020 16:29
@hierophect
Copy link
Collaborator Author

@tannewt @arturo182 Ok, I think this should be good to go. I've run quite a lot of tests on all the Busio modules along with DigitalIO and AnalogIO, and I've only had one breakout issue so far (#2977). Everything else seems to be pretty good - DigitalIO has all the right pullup and drive behavior, AnalogIO gets good resolution, and Busio works as expected on everything but the displays.

Since I was running so many comparisons, I also dug up some STM32 issues while working on this. Seems like that might be the next thing in need of a cleanup...

@hierophect hierophect requested review from tannewt and arturo182 May 29, 2020 17:21
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you!

@tannewt tannewt merged commit ddcae19 into adafruit:master May 29, 2020
@hierophect hierophect deleted the mimxrt-busio-cleanup branch June 9, 2020 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mimxrt10xx iMX RT based boards such as Teensy 4.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mimxrt10xx: Verify DigitalInOut mimxrt10xx: Verify the busio module mimxrt10xx: I2C doesn't check for pull-ups mimxrt10xx: Verify AnalogIn
3 participants