aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
authorPaul Brook <paul@nowt.org>2013-09-02 19:15:12 +0100
committerPaul Brook <paul@nowt.org>2013-09-02 19:15:12 +0100
commit0ade989a2d6b8408483902533270435d3cb155a4 (patch)
tree8eefa7372a2f77c810edc4656c4564258bae345c /cores/arduino
parentc2a003047377b7356c156afb2fecbf2715a0e012 (diff)
USB CDC two argument begin()
Add two argument form of Serial_::begin Signed-off-by: Paul Brook <paul@nowt.org>
Diffstat (limited to 'cores/arduino')
-rw-r--r--cores/arduino/CDC.cpp4
-rw-r--r--cores/arduino/USBAPI.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/cores/arduino/CDC.cpp b/cores/arduino/CDC.cpp
index 53f86f8..e1e859d 100644
--- a/cores/arduino/CDC.cpp
+++ b/cores/arduino/CDC.cpp
@@ -134,6 +134,10 @@ void Serial_::begin(unsigned long baud_count)
{
}
+void Serial_::begin(unsigned long baud_count, byte config)
+{
+}
+
void Serial_::end(void)
{
}
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);