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 platform support for CD-ROM eject buttons #226

Merged
merged 5 commits into from May 26, 2023

Conversation

PetteriAimonen
Copy link
Collaborator

Based on #217 by @saybur, this adds platform implementations for GD32 and RP2040 models.

Also fixed two bugs found in testing:

  • The CD-ROM eject button only gave log messages but did not actually eject the drive because of mistaken copy.
  • Switching between BIN/CUE and ISO images did not work correctly.

Pinouts are documented here:
https://github.com/ZuluSCSI/ZuluSCSI-firmware/blob/8fb7380b5206ba28c3eacbf9cd4547c7406be484/README.md#physical-eject-button-for-cdrom

The log messages got printed but the eject did not apply
because of accidental copy of the image_config_t structure.
Modified so that compiler will detect this mistake in future.
Previously when multiple images have been configured,
the next image has been automatically inserted after ejection.

Now with eject button support, some users may want to reinsert
only after pressing the button again. This config option allows
that.

Default behavior remains as before.

Also improved log messages of ejection button behavior.
Previously when switching from BIN/CUE image to ISO image, the
cue sheet would be mistakenly applied to the ISO image as well.
@aperezbios aperezbios merged commit 77b226c into main May 26, 2023
@aperezbios aperezbios deleted the dev_cdrom_eject_buttons branch May 26, 2023 17:58
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