Removed dependency on Arduino code for digital io and serial port. Warning: Conversion is not complete so still requires variant.cpp which had to be modified to allow us to handle the serial port interrupt.