summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/diserial.h
Commit message (Collapse)AuthorAgeFilesLines
* (nw) Clean up the mess on master Vas Crabb2019-03-261-2/+2
| | | | | | | | | | | | | This effectively reverts b380514764cf857469bae61c11143a19f79a74c5 and c24473ddff715ecec2e258a6eb38960cf8c8e98e, restoring the state at 598cd5227223c3b04ca31f0dbc1981256d9ea3ff. Before pushing, please check that what you're about to push is sane. Check your local commit log and ensure there isn't anything out-of-place before pushing to mainline. When things like this happen, it wastes everyone's time. I really don't need this in a week when real work™ is busting my balls and I'm behind where I want to be with preparing for MAME release.
* Revert "conflict resolution (nw)" andreasnaive2019-03-251-2/+2
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* diserial: Make is_receiver_register_full and is_transmit_register_empty ↵ AJR2019-01-041-2/+2
| | | | const and inline (nw)
* Re-write serial mouse support: Vas Crabb2018-09-191-10/+14
| | | | | | | | | | | | | | | | | | | | | | * Separate Microsoft 2-button mouse and Logitech 3-button Microsoft-compatible mouse * Add Microsoft wheel mouse * Make Mouse Systems mouse behave more realistically * Add Mouse Systems "rotatable" mouse * Simplify code and eliminate timers (nw) X/Y translation and buttons works for all devices. The wheel on the wheel mouse seems to be transmitting the right data, and CuteMouse detects the wheel as being present, but no software seems to support it properly. Software supporting the Mouse Systems "rotatable" mouse is very rare - typically people just set the DIP switches on their M-1 for "non-rotatable" mode. A standard mouse driver will see the "rotatable" mouse moving two mickeys for each count, and move eratically on rotation. The "rotable" mouse is poorly tested due to lack of software. (nw) MAME doesn't have a proper input type for a mouse wheel, and it doesn't seem to be possible to map the host mouse wheel to an axis when configuring inputs. The default mapping ends up assigining the wheel or rotation to one of the translation axes, which is very unhelpful.
* More cleanup/streamlining of machine configuration and macros: Vas Crabb2018-05-151-0/+2
| | | | | | | | | | | | | * Get rid of implicit prefix for GFX decode names and prefix them all * Get rid of special macro for adding GFXDECODE in favour of constructor * Make empty GFX decode a static member of interface * Allow palette to be specified to GFXDECODE as a device finder * Removed diserial.h from emu.h as it's used relatively infrequently Also fix darkseal and vaportra propely. The palette device automatically attaches itself to a share with matching tag. The correct solution here is to rename one or the other out of the way, since it was never attached to a share before.
* Reshuffle some stuff: Vas Crabb2018-03-281-7/+3
| | | | | | * Move around the debugger hooks to get a small but measurable performance increase * Remove emucore from external tools * Improve performance of DSP16 interpreter a little by generating six variants of execution loop
* Cleaned up serial, matrix keyboard and TI-8x link protocol interfaces: Vas Crabb2017-07-111-15/+10
| | | | | | | | | | * Switched to delegate timers - Frees implementations from having to call timer method - Eliminates risk of ID conflicts with implementations/other interfaces * Moved save state registration to interface post start - Plays nicely with device_missing_dependencies exceptions - Frees implementation from having to call save state registration method - Improves save state support in devices that neglected to call method
* A round of spelling/typographical fixes to source comments (nw) Scott Stone2016-11-241-1/+1
|
* Introduce u8/u16/u32/u64/s8/s16/s32/s64 Vas Crabb2016-11-191-27/+27
| | | | | | | | | | | | * New abbreviated types are in osd and util namespaces, and also in global namespace for things that #include "emu.h" * Get rid of import of cstdint types to global namespace (C99 does this anyway) * Remove the cstdint types from everything in emu * Get rid of U64/S64 macros * Fix a bug in dps16 caused by incorrect use of macro * Fix debugcon not checking for "do " prefix case-insensitively * Fix a lot of messed up tabulation * More constexpr * Fix up many __names
* Reverting part of changes from previous commits as described in mail on list ↵ Miodrag Milanovic2016-10-231-1/+1
| | | | (nw)
* there you go (nw) Miodrag Milanovic2016-10-221-1/+1
|
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-27/+27
| | | | | Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
* some bool <-> int not needed conversions, also cleaned drivenum.* was using ↵ Miodrag Milanovic2016-10-211-1/+1
| | | | memset for clearing vector (nw)
* make buffered serial a mixin to promote reuse [Vas Crabb] Vas Crabb2016-07-301-4/+85
|
* Various cleanups suggested by static analyzer (nw) Miodrag Milanovic2016-04-241-5/+5
|
* clang-modernize part 1 (nw) Miodrag Milanovic2015-12-031-1/+1
|
* Added some for Nathan and some more for Nicola (nw) Miodrag Milanovic2015-05-111-2/+2
|
* Added dummy license headers for EMU section (nw) Miodrag Milanovic2015-05-071-0/+2
|
* Fix various typos and spelling mistakes Zoë Blade2015-04-111-1/+1
| | | | | | | | | | | | | | I'm purposefully leaving /src/emu/bus/cbmiec/c1541.c's kernal.bin as it is, as this particular spelling mistake was originally made by Robert Russell, therefore is canon. See http://en.wikipedia.org/wiki/KERNAL for details. I'm also leaving /src/emu/machine/nscsi_bus.c's RECIEVE as I don't want to break anything, but it's worth someone looking into. I renamed some variables in /src/mame/drivers/sfbonus.c, /src/mame/video/tia.c and /src/mame/video/tia.h, so if anyone wants to verify I didn't break anything, that would be nice.
* save: Give the device when available to the state save subsystem [O. Galibert] Olivier Galibert2015-02-141-1/+1
|
* Added save state to keyboard.c, rs232/keyboard.c, and i8251.c (nw) Wilbert Pol2014-07-291-0/+2
|
* more passing of attotime as const references (nw) Oliver Stöneberg2014-07-041-3/+3
|
* Cleanups and version bumpmame0153 Miodrag Milanovic2014-04-071-1/+1
|
* Removed diserial connect(). Converted thomson, mc1502 & wangpc to use DEVCB2 ↵ smf-2014-02-241-15/+0
| | | | instead. [smf]
* diserial: Added framing error detection. [Curt Coder] Curt Coder2014-01-161-0/+5
| | | (MESS) compclr2: Floppy WIP. (nw)
* diserial: Added some information getters for future use. (nw) Curt Coder2014-01-141-0/+21
|
* Changed parity & stop bits to an enum (you can now pass in 1.5). I've ↵ smf-2014-01-131-4/+16
| | | | updated the uarts that were testing for 1.5 stop bits to pass that in, but there are probably others & 1.5 stop bits is converted to 2 by diserial. However the 68681 requires stop bits to be specified in clocks, so this will change in the future. Replaced synchronous flag with start bit count, as some uarts can use a start bit in synchronous mode & that whether there is a start bit is all the flag is currently controlling. Updated rs232 terminal to allow startbits, stop bits 1.5 to be specified (although that is currently not supported by diserial) and individual transmit and receive baud rates. [smf]
* Converted x68000 keyboard into a separate serial device. This allows the ↵ smf-2013-12-281-0/+2
| | | | removal of the uart hle in the driver (which didn't work, it was always two characters behind). diserial cannot sync with the start bit properly when using an external clock, so for now I've added a hack that is only enabled when using the MC68901 (setting the flag ignores the extra spurious bit that was getting shifted in). [smf]
* expose less of the diserial internals, which has meant adding ↵ smf-2013-12-271-8/+8
| | | | i8251_device::write_cts (nw)
* removed serial_source_device [smf] smf-2013-12-261-21/+0
|
* Cleanups and version bumpmame0152 Miodrag Milanovic2013-12-241-2/+2
|
* fixed compiling with MSVC, added enums for T10 commands, moved seek(6) from ↵ smf-2013-11-191-1/+1
| | | | 2410 to t10sbc (nw)
* Windows headers are crap, let me count the ways (nw) Olivier Galibert2013-11-191-0/+7
|
* diserial: Remove defines, cleanup clocks/timers, add sync support [O. Galibert] Olivier Galibert2013-11-181-76/+46
|
* diserial: simplify (nw) cracyc2013-07-011-6/+10
| | | ins8250: use clock-div rate setting for more precision (nw)
* diserial: add attotime and clock-div forms of set_rate and rename ↵ cracyc2013-06-301-3/+7
| | | | | | check_for_start to rx_w (nw) debugqt: don't hide cursor while in debugger (nw) (mess) ibmpc: xt floppies for the xt (nw)
* diserial: Added methods for clocking the receiver/transmitter outside of the ↵ Curt Coder2013-05-211-0/+2
| | | | timers. [Curt Coder]
* Cleanups and version bumpmame0148 Miodrag Milanovic2013-01-111-17/+17
|
* Sync with MESS, Curt changes related to Wang PC (no whatsnew) Miodrag Milanovic2012-05-291-1/+1
|
* Clean-ups and version bumpmame0145u2 Angelo Salese2012-02-261-1/+1
|
* Fixed order of timer init and save state by Sandro Ronco (no whatsnew) Miodrag Milanovic2012-02-261-0/+3
|
* mc146818 - Set period even if timer is disabled, required for windows nt [Carl] Miodrag Milanovic2012-02-201-1/+16
| | | | | | | diserial - added optinal rx and tx timers and callbacks [Carl] ins8250 - serial rx line high on start and fix for msr register [Carl] bitbanger - added 19200bps (no whatsnew)
* Rewrite INS8250 to use diserial, updated Microtouch to modern and made it ↵ Miodrag Milanovic2012-02-191-1/+3
| | | | serial device, updated connected drivers [Carl]
* Cleanups and version bumpmame0143u5 Angelo Salese2011-09-061-17/+17
|
* Set more proper name to interface call (no whatsnew) Miodrag Milanovic2011-09-021-1/+1
|
* - Created device_serial_interface that should be used by UART's (no whatsnew) Miodrag Milanovic2011-09-021-0/+174
- It is used by MESS side i8251 and 6551 are using it now - Also created simple serial source devices (used by some cassette interface) This will be optimized and rechecked after new chips are converted to use it No whatsnew for now, but there will be info for the release.