mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 04:18:43 +00:00
28 lines
845 B
C#
28 lines
845 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.IO.Ports;
|
|
|
|
namespace Cosmos.Debug.Common {
|
|
/// <summary>Use a serial port to implement wire transfer protocol between a Debug Stub hosted
|
|
/// in a debugged Cosmos Kernel and our Debug Engine hosted in Visual Studio.</summary>
|
|
public class DebugConnectorSerial : DebugConnectorStream {
|
|
private SerialPort mPort;
|
|
|
|
public DebugConnectorSerial(string aPort) {
|
|
mPort = new SerialPort(aPort);
|
|
mPort.BaudRate = 115200;
|
|
mPort.Parity = Parity.None;
|
|
mPort.DataBits = 8;
|
|
mPort.StopBits = StopBits.One;
|
|
mPort.Open();
|
|
Start(mPort.BaseStream);
|
|
}
|
|
|
|
protected override void InitializeBackground()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|