mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-26 01:29:30 +00:00
SSC: Make default baud-rate consistent (9600)
This commit is contained in:
parent
ba090ebcef
commit
2fdc270837
|
@ -98,7 +98,7 @@ void CSuperSerialCard::InternalReset()
|
||||||
// . NB. MOS6551 datasheet: Hardware reset: b#00000010 (so ACIA not init'd on IN#2!)
|
// . NB. MOS6551 datasheet: Hardware reset: b#00000010 (so ACIA not init'd on IN#2!)
|
||||||
UpdateCommandReg(0);
|
UpdateCommandReg(0);
|
||||||
|
|
||||||
m_uBaudRate = CBR_19200; // Undefined, as CONTROL.CLK_SOURCE=0=External clock is not supported for SSC - so nominally use 19200
|
m_uBaudRate = m_kDefaultBaudRate; // Undefined, as CONTROL.CLK_SOURCE=0=External clock is not supported for SSC - so nominally AppleWin default
|
||||||
m_uStopBits = ONESTOPBIT;
|
m_uStopBits = ONESTOPBIT;
|
||||||
m_uByteSize = 8;
|
m_uByteSize = 8;
|
||||||
m_uParity = NOPARITY;
|
m_uParity = NOPARITY;
|
||||||
|
@ -171,7 +171,7 @@ UINT CSuperSerialCard::BaudRateToIndex(UINT uBaudRate)
|
||||||
|
|
||||||
_ASSERT(0);
|
_ASSERT(0);
|
||||||
LogFileOutput("SSC: BaudRateToIndex(): unsupported rate: %d\n", uBaudRate);
|
LogFileOutput("SSC: BaudRateToIndex(): unsupported rate: %d\n", uBaudRate);
|
||||||
return BaudRateToIndex(CBR_19200); // nominally use 19200
|
return BaudRateToIndex(m_kDefaultBaudRate); // nominally use AppleWin default
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
|
@ -96,6 +96,7 @@ private:
|
||||||
static SSC_DIPSW m_DIPSWDefault;
|
static SSC_DIPSW m_DIPSWDefault;
|
||||||
SSC_DIPSW m_DIPSWCurrent;
|
SSC_DIPSW m_DIPSWCurrent;
|
||||||
|
|
||||||
|
static const UINT m_kDefaultBaudRate = CBR_9600;
|
||||||
UINT m_uBaudRate;
|
UINT m_uBaudRate;
|
||||||
UINT m_uStopBits;
|
UINT m_uStopBits;
|
||||||
UINT m_uByteSize;
|
UINT m_uByteSize;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user