Skip to content

Commit

Permalink
Add UART1 aka RPi port to Einsy and MK3/s (#285)
Browse files Browse the repository at this point in the history
* Add UART1 aka RPi port to Einsy and MK3/s + MMU2/s
  • Loading branch information
3d-gussner authored Nov 25, 2020
1 parent f81536e commit ef089ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions parts/boards/EinsyRambo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ namespace Boards

AddSerialPty(&UART2,'2');
AddHardware(UART0);
AddHardware(UART1);

AddHardware(m_Mon0,'0');
AddHardware(m_Mon1,'1');

// SD card
std::string strSD = GetSDCardFile();
Expand Down Expand Up @@ -197,6 +199,7 @@ namespace Boards
}

AddUARTTrace('0'); // External
AddUARTTrace('1'); // RPi port
AddUARTTrace('2'); // MMU/internal/P3

//avr_irq_register_notify(GetDIRQ(PAT_INT_PIN), MAKE_C_CALLBACK(EinsyRambo, DebugPin),this);
Expand Down
3 changes: 2 additions & 1 deletion parts/boards/EinsyRambo.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ namespace Boards
RotaryEncoder encoder;
Button PowerPanic {"Power Panic",'p',"Triggers Power Panic line"};
Beeper m_buzzer;
uart_pty UART0, UART2;
uart_pty UART0, UART1, UART2;
SerialLineMonitor m_Mon0 = SerialLineMonitor("Serial0");
SerialLineMonitor m_Mon1 = SerialLineMonitor("Serial1");
Thermistor tExtruder, tBed, tPinda, tAmbient;
Fan fExtruder {3300,'E'}, fPrint {5000,'P',true};
Heater hExtruder = {1.5,25.0,false,'H',30,250},
Expand Down
1 change: 1 addition & 0 deletions parts/printers/Prusa_MK3S.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ void Prusa_MK3S::SetupHardware()
if (GetConnectSerial())
{
UART0.Connect('0');
UART1.Connect('1');
}

auto fcnSerial = [](avr_t *avr, avr_io_addr_t addr, uint8_t v, void * param)
Expand Down

0 comments on commit ef089ab

Please sign in to comment.