{"id":18924517,"url":"https://github.com/sharpcoder/floppy-driver-rs","last_synced_at":"2025-10-12T16:19:20.909Z","repository":{"id":210617564,"uuid":"719158456","full_name":"SharpCoder/floppy-driver-rs","owner":"SharpCoder","description":"A floppy driver written in rust","archived":false,"fork":false,"pushed_at":"2023-12-04T03:30:54.000Z","size":977,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-05T01:37:34.489Z","etag":null,"topics":["embedded","floppy-drives","rust"],"latest_commit_sha":null,"homepage":"https://floppy.cafe/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SharpCoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-15T15:20:14.000Z","updated_at":"2025-05-15T01:57:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e1c2193-4cce-4690-a770-41a8cf35db4e","html_url":"https://github.com/SharpCoder/floppy-driver-rs","commit_stats":null,"previous_names":["sharpcoder/floppy-driver-rs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SharpCoder/floppy-driver-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SharpCoder%2Ffloppy-driver-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SharpCoder%2Ffloppy-driver-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SharpCoder%2Ffloppy-driver-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SharpCoder%2Ffloppy-driver-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SharpCoder","download_url":"https://codeload.github.com/SharpCoder/floppy-driver-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SharpCoder%2Ffloppy-driver-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274396742,"owners_count":25277395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["embedded","floppy-drives","rust"],"created_at":"2024-11-08T11:07:02.483Z","updated_at":"2025-10-12T16:19:20.787Z","avatar_url":"https://github.com/SharpCoder.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# floppy-driver-rs\n\n**You can find the entire writeup for this project at** [https://floppy.cafe/](https://floppy.cafe)\n\n\nThis is a floppy driver written in baremetal rust. It sports a number of methods\ncapable of interfacing with the floppy drive and reading/writing from an IBM formatted\nfloppy disk. \n\n - fdd.rs: the floppy disk driver\n - mfm.rs: the mfm encoding support functions\n - mfm.S: the lower level mfm encoding functions written in assembly\n - config.rs: pin configurations\n\n\nThis project is built off my own kernel, [teensycore](https://github.com/SharpCoder/teensycore).\n\n## Wiring\n\nHere is the mapping between the teensy and the direct floppy drive. **NOTE** If you are using a cable, some pins will be reversed. Please pay careful attention to how the floppy \"twist\" works. Here's a website [detailing the cable twist](http://www.interfacebus.com/PC_Floppy_Drive_PinOut.html).\n\n| Teensy Pin # | Floppy Pin # | Function Name     |\n|--------------|--------------|-------------------|\n| 3            | 8            | INDEX             |\n| 4            | 12           | DRIVE SELECT      |\n| 5            | 16           | MOTOR ON          |\n| 6            | 18           | DIRECTION SELECT  |\n| 7            | 20           | STEP              |\n| 8            | 22           | WRITE DATA        |\n| 9            | 24           | WRITE GATE        |\n| 10           | 26           | TRACK 00          |\n| 11           | 28           | WRITE PROTECT     |\n| 12           | 30           | READ DATA         |\n| 14           | 32           | HEAD SELECT       |\n| 15           | 34           | READY/DISK CHANGE |\n\n## Installation\n\nTo properly build on a Linux machine, you'll need the following:\n\n```bash\n# Install build tools\nsudo apt-get install build-essential gcc-arm-none-eabi jq\n\n# Configure rust\nrustup default nightly\nrustup target add thumbv7em-none-eabihf\n```\n\n## Building\n\nRun the build script and it will generate file`./out/floppy_driver_rs.hex` which can be flashed with the [teensy loader](https://www.pjrc.com/teensy/loader.html).\n\n```bash\n./build.sh\n```\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharpcoder%2Ffloppy-driver-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharpcoder%2Ffloppy-driver-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharpcoder%2Ffloppy-driver-rs/lists"}