mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			Merge pull request #4615 from u-blox/uart_serial_set_baud
Add set_baud() method to UARTSerial().pull/4803/head
						commit
						c1e455c594
					
				| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -152,6 +152,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:
 | 
			
		||||
 | 
			
		||||
    /** SerialBase lock override */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue