Class for implementing several serial ports

this-> is implied. You look silly using it.

It's useless but I like it. There's no extra code for this, isn't it?

There are #defined variable that define which board is selected when compiling. Why can't you use them?

I'd like to use this but I didn't know how. I was unsuccessfully trying to look for any example. The solution provided by pYro_65 is good for Arduino based CPUs, but I would like to use it on an ATMEGA1284P or other controllers. How can I do it?

Thanks for your help! I'll try it as soon as possible.