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

PXA255/39in1: Improve register mapping, fix EEPROM readback. #11780

Merged
merged 3 commits into from
Nov 27, 2023

Conversation

MooglyGuy
Copy link
Contributor

-pxa255: General cleanups. [Ryan Holtz]

  • Eliminated custom header in favor of scoped enums.
  • Eliminated double-dispatch switch/case in handlers, in favor of individual register handlers.
  • Reworked GPIO handling for correctness.

-39in1: Fixed GPIO hookup, now boots on its own. [Ryan Holtz]

Ryan Holtz added 2 commits November 25, 2023 19:25
 * Eliminated custom header in favor of scoped enums.
 * Eliminated double-dispatch switch/case in handlers, in favor of
   individual register handlers.
 * Reworked GPIO handling for correctness.

- 39in1: Fixed GPIO hookup, now boots on its own. [Ryan Holtz]
Copy link
Member

@cuavas cuavas left a comment

Choose a reason for hiding this comment

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

This looks pretty straightforward, and makes the code take advantage of more quality-of-life stuff we get these days.

I noticed one read handler missing a check for disabled side effects.

Another thing to think about, although probably better to do separately, is adding side effect checks before logging in read handlers to avoid log spam when debugger memory windows are open. But it isn’t critical since it isn’t a regression and logging is disabled at compile time by default.

src/devices/machine/pxa255.cpp Outdated Show resolved Hide resolved
@cuavas cuavas merged commit 0c9f5dd into mamedev:master Nov 27, 2023
5 checks passed
einstein95 pushed a commit to einstein95/mame that referenced this pull request Mar 2, 2024
…1780) [Ryan Holtz]

* Implemented free-running timer.
* Eliminated internal header in favor of scoped enums.
* Eliminated double-dispatch switch/case in handlers, in favor of individual register handlers.
* Reworked GPIO handling for correctness.

-misc/39in1.cpp: Fixed GPIO hookup, now boots on its own. [Ryan Holtz]
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