Skip to content

Commit f11adb0

Browse files
committed
migrate cdc device to use edpt stream API
tu_edpt_stream_open() does not clear fifo, allow for persistent stream when disconnect/reconnect
1 parent 8b8f1f8 commit f11adb0

File tree

7 files changed

+194
-241
lines changed

7 files changed

+194
-241
lines changed

.clang-format

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
Language: Cpp
33
BasedOnStyle: LLVM
4-
AlignAfterOpenBracket: AlwaysBreak
4+
AlignAfterOpenBracket: Align
55
AlignConsecutiveAssignments:
66
Enabled: true
77
AcrossEmptyLines: false
@@ -38,6 +38,7 @@ AllowShortEnumsOnASingleLine: false
3838
AllowShortFunctionsOnASingleLine: None
3939
AllowShortIfStatementsOnASingleLine: Never
4040
AlwaysBreakTemplateDeclarations: Yes
41+
BinPackArguments: true
4142
BreakBeforeBraces: Custom
4243
BraceWrapping:
4344
AfterCaseLabel: false
@@ -57,8 +58,10 @@ BraceWrapping:
5758
SplitEmptyRecord: true
5859
SplitEmptyNamespace: true
5960
BracedInitializerIndentWidth: 2
61+
BreakBeforeBinaryOperators: None
6062
BreakConstructorInitializers: AfterColon
6163
BreakConstructorInitializersBeforeComma: false
64+
ContinuationIndentWidth: 2
6265
ColumnLimit: 120
6366
ConstructorInitializerAllOnOneLineOrOnePerLine: false
6467
Cpp11BracedListStyle: true
@@ -78,6 +81,8 @@ MacroBlockBegin: ''
7881
MacroBlockEnd: ''
7982
MaxEmptyLinesToKeep: 2
8083
NamespaceIndentation: All
84+
PenaltyBreakBeforeFirstCallParameter: 1000000
85+
PenaltyBreakOpenParenthesis: 1000000
8186
QualifierAlignment: Custom
8287
QualifierOrder: ['static', 'const', 'volatile', 'restrict', 'type']
8388
ReflowComments: false

examples/device/net_lwip_webserver/src/usb_descriptors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, const tusb_contro
270270

271271
switch (request->bmRequestType_bit.type) {
272272
case TUSB_REQ_TYPE_VENDOR:
273-
switch (request->bRequest) { //-V2520 //-V2659
273+
switch (request->bRequest) {
274274
case 1:
275275
if (request->wIndex == 7) {
276276
// Get Microsoft OS 2.0 compatible descriptor

0 commit comments

Comments
 (0)