Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f53fcdd

Browse files
committed
USB CDC two argument begin()
Add two argument form of Serial_::begin Signed-off-by: Paul Brook <paul@nowt.org>
1 parent 1162a45 commit f53fcdd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

‎hardware/arduino/cores/arduino/CDC.cpp‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ void Serial_::begin(unsigned long baud_count)
134134
{
135135
}
136136

137+
void Serial_::begin(unsigned long baud_count, byte config)
138+
{
139+
}
140+
137141
void Serial_::end(void)
138142
{
139143
}

‎hardware/arduino/cores/arduino/USBAPI.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class Serial_ : public Stream
3131
ring_buffer *_cdc_rx_buffer;
3232
public:
3333
void begin(unsigned long);
34+
void begin(unsigned long, uint8_t);
3435
void end(void);
3536

3637
virtual int available(void);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /