diff --git a/drivers/SerialBase.h b/drivers/SerialBase.h index 7d248c6187..7cce02341e 100644 --- a/drivers/SerialBase.h +++ b/drivers/SerialBase.h @@ -160,10 +160,10 @@ public: * If both serial input and serial output are disabled, the * peripheral is freed. If either serial input or serial * output is re-enabled, the peripheral is reinitialized. - * - * On reinitialisation rx interrupts will be enabled if a + * + * On reinitialization rx interrupts will be enabled if a * rx handler is attached. The rx handler is called once - * during reinitialisation. + * during reinitialization. */ void enable_input(bool enable = true); @@ -172,10 +172,10 @@ public: * If both serial input and serial output are disabled, the * peripheral is freed. If either serial input or serial * output is re-enabled, the peripheral is reinitialized. - * - * On reinitialisation tx interrupts will be enabled if a + * + * On reinitialization tx interrupts will be enabled if a * tx handler is attached. The tx handler is called once - * during reinitialisation. + * during reinitialization. */ void enable_output(bool enable = true); diff --git a/drivers/source/SerialBase.cpp b/drivers/source/SerialBase.cpp index e5e5a22273..a6cfa4e60a 100644 --- a/drivers/source/SerialBase.cpp +++ b/drivers/source/SerialBase.cpp @@ -30,11 +30,11 @@ SerialBase::SerialBase(PinName tx, PinName rx, int baud) : _rx_callback(NULL), _tx_asynch_set(false), _rx_asynch_set(false), #endif - _serial(), - _baud(baud), - _rx_enabled(true), - _tx_enabled(true), - _tx_pin(tx), + _serial(), + _baud(baud), + _rx_enabled(true), + _tx_enabled(true), + _tx_pin(tx), _rx_pin(rx), _flow_type(Disabled), _flow1(NC),