From c2a003047377b7356c156afb2fecbf2715a0e012 Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Mon, 2 Sep 2013 18:58:28 +0100 Subject: USB serial baud arg type Make USB Serial_::begin() function take an unsigned long argument for consistency with HardwareSerial. Signed-off-by: Paul Brook --- cores/arduino/USBAPI.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cores/arduino/USBAPI.h') diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h index eb2e593..d138a0e 100644 --- a/cores/arduino/USBAPI.h +++ b/cores/arduino/USBAPI.h @@ -30,7 +30,7 @@ class Serial_ : public Stream private: ring_buffer *_cdc_rx_buffer; public: - void begin(uint16_t baud_count); + void begin(unsigned long); void end(void); virtual int available(void); @@ -193,4 +193,4 @@ void USB_Flush(uint8_t ep); #endif -#endif /* if defined(USBCON) */ \ No newline at end of file +#endif /* if defined(USBCON) */ -- cgit v1.2.3-18-g5258 From 0ade989a2d6b8408483902533270435d3cb155a4 Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Mon, 2 Sep 2013 19:15:12 +0100 Subject: USB CDC two argument begin() Add two argument form of Serial_::begin Signed-off-by: Paul Brook --- cores/arduino/USBAPI.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cores/arduino/USBAPI.h') diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h index d138a0e..7a14285 100644 --- a/cores/arduino/USBAPI.h +++ b/cores/arduino/USBAPI.h @@ -31,6 +31,7 @@ private: ring_buffer *_cdc_rx_buffer; public: void begin(unsigned long); + void begin(unsigned long, uint8_t); void end(void); virtual int available(void); -- cgit v1.2.3-18-g5258