Skip to content

Commit a21d92e

Browse files
committed
[sam] Added empty Serial::begin() with options for CDC-ACM
See #1563
1 parent dc86455 commit a21d92e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

hardware/arduino/sam/cores/arduino/USB/CDC.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ void Serial_::begin(uint32_t baud_count)
149149
{
150150
}
151151

152+
void Serial_::begin(uint32_t baud_count, uint8_t config)
153+
{
154+
}
155+
152156
void Serial_::end(void)
153157
{
154158
}

hardware/arduino/sam/cores/arduino/USB/USBAPI.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class Serial_ : public Stream
4949
RingBuffer *_cdc_rx_buffer;
5050
public:
5151
void begin(uint32_t baud_count);
52+
void begin(uint32_t baud_count, uint8_t config);
5253
void end(void);
5354

5455
virtual int available(void);

0 commit comments

Comments
 (0)