mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #12282 from mprse/fix_for_issue_12268
Fix for issue #12268 (SerialBase.cpp: fix initialization list)pull/12307/head
commit
cb53825874
|
@ -24,13 +24,13 @@
|
||||||
namespace mbed {
|
namespace mbed {
|
||||||
|
|
||||||
SerialBase::SerialBase(PinName tx, PinName rx, int baud) :
|
SerialBase::SerialBase(PinName tx, PinName rx, int baud) :
|
||||||
|
_init_func(&SerialBase::_init),
|
||||||
#if DEVICE_SERIAL_ASYNCH
|
#if DEVICE_SERIAL_ASYNCH
|
||||||
_thunk_irq(this),
|
_thunk_irq(this),
|
||||||
#endif
|
#endif
|
||||||
_baud(baud),
|
_baud(baud),
|
||||||
_tx_pin(tx),
|
_tx_pin(tx),
|
||||||
_rx_pin(rx),
|
_rx_pin(rx)
|
||||||
_init_func(&SerialBase::_init)
|
|
||||||
{
|
{
|
||||||
// No lock needed in the constructor
|
// No lock needed in the constructor
|
||||||
|
|
||||||
|
@ -38,14 +38,14 @@ SerialBase::SerialBase(PinName tx, PinName rx, int baud) :
|
||||||
}
|
}
|
||||||
|
|
||||||
SerialBase::SerialBase(const serial_pinmap_t &static_pinmap, int baud) :
|
SerialBase::SerialBase(const serial_pinmap_t &static_pinmap, int baud) :
|
||||||
|
_init_func(&SerialBase::_init_direct),
|
||||||
#if DEVICE_SERIAL_ASYNCH
|
#if DEVICE_SERIAL_ASYNCH
|
||||||
_thunk_irq(this),
|
_thunk_irq(this),
|
||||||
#endif
|
#endif
|
||||||
_baud(baud),
|
_baud(baud),
|
||||||
_tx_pin(static_pinmap.tx_pin),
|
_tx_pin(static_pinmap.tx_pin),
|
||||||
_rx_pin(static_pinmap.rx_pin),
|
_rx_pin(static_pinmap.rx_pin),
|
||||||
_static_pinmap(&static_pinmap),
|
_static_pinmap(&static_pinmap)
|
||||||
_init_func(&SerialBase::_init_direct)
|
|
||||||
{
|
{
|
||||||
// No lock needed in the constructor
|
// No lock needed in the constructor
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue