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

Improved reset, timer and port C behaviour #1783

Merged
merged 2 commits into from
Nov 30, 2016

Conversation

JoakimLarsson
Copy link
Contributor

Added some features that is needed for the micro20 selftest but couldn't hook up the missing parts so haven't verified that the self test actually can run through now. Improvements:

  • H4 is now cleared in reset and asserted by software down the line
  • By calling the update_tin method the device now support external clock for the timer.
  • clock can also be polled at port C bit Update x68k.c #2

The test expects something to pulse at port B and then a clock at TIN (port C pin #2 alternate function)

@@ -20,7 +20,7 @@
* - Complete support for clock and timers
* - Add interrupt support
* - Add DMA support
* - Add double buffering for each submode
* - Add apropriate buffering for each submode
Copy link
Member

Choose a reason for hiding this comment

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

Can you fix the spelling to save Tafoid's blood pressure? ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Roger that! I know that can be a problem, more exercise is good my doctor said and indeed :)


void pit68230_device::update_tin()
{
static uint32_t counter = 0;
Copy link
Member

Choose a reason for hiding this comment

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

This can't possibly be right - how can there be one of these for all instances of the device? Function statics are also a problem for when we want to be able to run multiple machines in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, its wip and wrong I know, but will fix it, stay tuned.

@cuavas cuavas merged commit 10deed6 into mamedev:master Nov 30, 2016
@JoakimLarsson JoakimLarsson deleted the micro20 branch December 6, 2016 14:13
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