p3p / pio-framework-arduino-lpc176x

10 stars 18 forks source link

Ability to use alternative UART ports #27

Closed msutas closed 4 years ago

msutas commented 4 years ago

Is it possible to define the uart ports via the Marlin configuration. For example by default uart3 is binded to P0_00 - P0_01 but I would like to use P4_28 - P4_29 pins.

I can do this by modifying the HardwareSerial.h file that is downloaded by platformio but I would like to add my board files to Marlin source and since the uart pins are hard coded my uart3 will not be functional in Marlin for someone using the board setup other than me.

I thought this is the right place to ask rather than Marlin repository.

p3p commented 4 years ago

Could probably just change the constructor to take pins, or set an alt mode, would just need to update Marlins MarlinSerial class to use it.

msutas commented 4 years ago

Thank you let me dig it. If I can solve it, I wil create pull requests on Marlin and the framework.