http://mbed.org/users/Sissors/code/MODSERIAL/#da0788f0bd77