-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Pi UART support to UARTReplacement plugin.
Added support for mapping Pi GPIO pins 4 and 5 to serial DRT and RTS. Fixed UART RX slowdown caused by sleeping 1ms every time the RX buffer is emptied. Changed UART RX buffer from a polling- to an event-driven model. Updated all plugins to work with CSpect 2.19.4.4.
- Loading branch information
1 parent
409dad6
commit 91234d0
Showing
8 changed files
with
549 additions
and
251 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Plugins.UARTReplacement | ||
{ | ||
public class Buffer : Queue<Byte> | ||
{ | ||
public readonly string PortName; | ||
public readonly UARTTargets Target; | ||
public readonly string LogPrefix; | ||
|
||
|
||
public Buffer(string portName, UARTTargets target) | ||
{ | ||
PortName = portName; | ||
Target = target; | ||
LogPrefix = target.ToString().Substring(0, 1) + "." + (portName ?? "").Trim() + "."; | ||
} | ||
} | ||
} |
Oops, something went wrong.