Arduino Mega hardware serial

Hello,

  1. Is there any equivalent to the SoftwareSerial inverse_logic function in the hardware serial? [Eg. SoftwareSerial mySerial(2,3,true);]
  2. As I see it, in order to change an hardware-serial from 8-N-1 to 8-O-1, all I've got to do is adding:
UCSR1C= UCSR1C | B00110000;

after:

Serial1.begin(9600);

right? anything else I should add?

Thanks!

As I see it, in order to change an hardware-serial from 8-N-1 to 8-O-1, all I've got to do is adding:

Seems right, unless the library dicks with the register at a later date although

UCSR1C |= B00110000;

is neater.

Is there any equivalent to the SoftwareSerial inverse_logic function in the hardware serial?

No, unless you count using an external inverter.


Rob