Repository navigation
Commit 22f7dd4
committed
chore(cdc): drop the unused USBD_CDC_ClearBuffer
USBD_CDC_Receive() was its only caller. The helper is not part of the
ST USB device middleware, it is local to this core, and the only thing
it does is arm the OUT endpoint with a NULL application buffer, which
is what made a receive overrun fault the MCU.
Remove it so it cannot be reused. This also drops a USE_USBD_COMPOSITE
branch that would not compile: it reads a bare classId instead of
pdev->classId.1 parent cd7b8c2 commit 22f7dd4
2 files changed
Lines changed: 0 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
155 | 154 | | |
156 | | - | |
157 | 155 | | |
158 | 156 | | |
159 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1019 | 1019 | | |
1020 | 1020 | | |
1021 | 1021 | | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | 1022 | | |
1041 | 1023 | | |
1042 | 1024 | | |
| |||
0 commit comments