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

Add floppyio #5852

Merged
merged 16 commits into from
Apr 26, 2022
Merged

Add floppyio #5852

merged 16 commits into from
Apr 26, 2022

Conversation

jepler
Copy link
Member

@jepler jepler commented Jan 13, 2022

Initially enabled for samd51, this enables reading raw flux data as well as DOS/MFM formatted media.

This is only the low-level code for reading & decoding flux pulses from a floppy drive. high level details will live in a Python library.

Adafruit_CircuitPython_floppy takes care of details like stepping from track to track, etc.

The port is free to return NULL for any/all of these, and the caller has
to check.

This will be used in the floppy code, because aside from getting the
registers, it looks like all is independent of MCU.
Initially enabled for samd51, this enables reading raw flux data as well
as DOS/MFM formatted media.

This is only the low-level code for reading & decoding flux pulses from a floppy drive.
high level details will live in a Python library.

adafruit-circuitpython-floppy will take care of details like stepping
from track to track, etc.
@jepler
Copy link
Member Author

jepler commented Jan 14, 2022

Let's hold this for a bit, @ladyada wants to re-org files in Adafruit_Floppy, which we submodule here.

@jepler jepler marked this pull request as draft January 14, 2022 14:30
@jepler jepler marked this pull request as ready for review January 14, 2022 20:12
Tested on RP2040 Feather with a 3.5" Prodigy diskette, the whole
surface reads 100% across 3+ trials.
@dhalbert
Copy link
Collaborator

@jepler Are you still waiting for a review? I thought you might be still churning this on a daily basis.

@jepler
Copy link
Member Author

jepler commented Jan 22, 2022

I think there'll still be churn before this is really ready to go in, so we can close it or switch it to draft.

@dhalbert dhalbert marked this pull request as draft January 22, 2022 19:53
@dhalbert
Copy link
Collaborator

I made it draft, np.

This is needed so that the floppy flux reader can enable the pull up
on the index pin while using it as a pio jmp pin.

Also fixes a doc bug where the `jmp_pin` was omitted in one spot in the docs.
@jepler jepler marked this pull request as ready for review February 2, 2022 23:07
@jepler jepler marked this pull request as draft March 31, 2022 14:32
@jepler
Copy link
Member Author

jepler commented Apr 7, 2022

I need to go through a round of testing on this, but we decided to go ahead with this limited functionality in CircuitPython. Most users will probably want to use Arduino for more advanced stuff (or just the gw-compatible firmware), and that's OK.

After I re-test mfm floppy reading on hardware, I'll set this as ready for review.

@jepler jepler marked this pull request as ready for review April 12, 2022 13:46
@jepler jepler requested a review from dhalbert April 12, 2022 13:47
@jepler
Copy link
Member Author

jepler commented Apr 12, 2022

I brought this up to date and re-tested with a Feather M4 & 5.25" floppy drive.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

Great work! Will merge to get it available.

@dhalbert dhalbert merged commit 3a8fb4e into adafruit:main Apr 26, 2022
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.

2 participants