Add set_baud() method to UARTSerial().

pull/4615/head
Rob Meades 2017-06-22 12:26:48 +01:00
parent d121a43e37
commit 89ddfc5beb
2 changed files with 11 additions and 0 deletions

View File

@ -43,6 +43,11 @@ void UARTSerial::dcd_irq()
wake();
}
void UARTSerial::set_baud(int baud)
{
SerialBase::baud(baud);
}
void UARTSerial::set_data_carrier_detect(PinName dcd_pin, bool active_high)
{
delete _dcd_irq;

View File

@ -157,6 +157,12 @@ public:
*/
void set_data_carrier_detect(PinName dcd_pin, bool active_high = false);
/** Set the baud rate
*
* @param baud The baud rate
*/
void set_baud(int baud);
private:
/** Software serial buffers