Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
e0657db0
Unverified
Commit
e0657db0
authored
Aug 24, 2023
by
Me No Dev
Committed by
GitHub
Aug 24, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8559 from SuGlider/hwcdc_buffer_review
Allows changing HW CDC Buffer Size after or before begin()
parents
f1eacf75
6d1706cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
cores/esp32/HWCDC.cpp
cores/esp32/HWCDC.cpp
+12
-3
No files found.
cores/esp32/HWCDC.cpp
View file @
e0657db0
...
...
@@ -173,9 +173,18 @@ void HWCDC::begin(unsigned long baud)
if
(
tx_lock
==
NULL
)
{
tx_lock
=
xSemaphoreCreateMutex
();
}
setRxBufferSize
(
256
);
//default if not preset
setTxBufferSize
(
256
);
//default if not preset
//RX Buffer default has 256 bytes if not preset
if
(
rx_queue
==
NULL
)
{
if
(
!
setRxBufferSize
(
256
))
{
log_e
(
"HW CDC RX Buffer error"
);
}
}
//TX Buffer default has 256 bytes if not preset
if
(
tx_ring_buf
==
NULL
)
{
if
(
!
setTxBufferSize
(
256
))
{
log_e
(
"HW CDC TX Buffer error"
);
}
}
usb_serial_jtag_ll_disable_intr_mask
(
USB_SERIAL_JTAG_LL_INTR_MASK
);
usb_serial_jtag_ll_clr_intsts_mask
(
USB_SERIAL_JTAG_LL_INTR_MASK
);
usb_serial_jtag_ll_ena_intr_mask
(
USB_SERIAL_JTAG_INTR_SERIAL_IN_EMPTY
|
USB_SERIAL_JTAG_INTR_SERIAL_OUT_RECV_PKT
|
USB_SERIAL_JTAG_INTR_BUS_RESET
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment