mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
22 lines
536 B
C#
22 lines
536 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.IO.Ports;
|
|
|
|
namespace Cosmos.Debug.Common {
|
|
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);
|
|
}
|
|
|
|
}
|
|
}
|