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
b6f7d403
Unverified
Commit
b6f7d403
authored
Apr 29, 2024
by
Unbinilium
Committed by
GitHub
Apr 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(hal-uart): truncated tx/rx buffer size (uint16_t -> uint32_t) (#9554)
parent
cf448906
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
cores/esp32/esp32-hal-uart.c
cores/esp32/esp32-hal-uart.c
+2
-2
cores/esp32/esp32-hal-uart.h
cores/esp32/esp32-hal-uart.h
+2
-2
No files found.
cores/esp32/esp32-hal-uart.c
View file @
b6f7d403
...
@@ -375,7 +375,7 @@ bool uartSetHwFlowCtrlMode(uart_t *uart, uart_hw_flowcontrol_t mode, uint8_t thr
...
@@ -375,7 +375,7 @@ bool uartSetHwFlowCtrlMode(uart_t *uart, uart_hw_flowcontrol_t mode, uint8_t thr
// This helper function will return true if a new IDF UART driver needs to be restarted and false if the current one can continue its execution
// This helper function will return true if a new IDF UART driver needs to be restarted and false if the current one can continue its execution
bool
_testUartBegin
(
bool
_testUartBegin
(
uint8_t
uart_nr
,
uint32_t
baudrate
,
uint32_t
config
,
int8_t
rxPin
,
int8_t
txPin
,
uint
16_t
rx_buffer_size
,
uint16
_t
tx_buffer_size
,
bool
inverted
,
uint8_t
uart_nr
,
uint32_t
baudrate
,
uint32_t
config
,
int8_t
rxPin
,
int8_t
txPin
,
uint
32_t
rx_buffer_size
,
uint32
_t
tx_buffer_size
,
bool
inverted
,
uint8_t
rxfifo_full_thrhd
uint8_t
rxfifo_full_thrhd
)
{
)
{
if
(
uart_nr
>=
SOC_UART_NUM
)
{
if
(
uart_nr
>=
SOC_UART_NUM
)
{
...
@@ -397,7 +397,7 @@ bool _testUartBegin(
...
@@ -397,7 +397,7 @@ bool _testUartBegin(
}
}
uart_t
*
uartBegin
(
uart_t
*
uartBegin
(
uint8_t
uart_nr
,
uint32_t
baudrate
,
uint32_t
config
,
int8_t
rxPin
,
int8_t
txPin
,
uint
16_t
rx_buffer_size
,
uint16
_t
tx_buffer_size
,
bool
inverted
,
uint8_t
uart_nr
,
uint32_t
baudrate
,
uint32_t
config
,
int8_t
rxPin
,
int8_t
txPin
,
uint
32_t
rx_buffer_size
,
uint32
_t
tx_buffer_size
,
bool
inverted
,
uint8_t
rxfifo_full_thrhd
uint8_t
rxfifo_full_thrhd
)
{
)
{
if
(
uart_nr
>=
SOC_UART_NUM
)
{
if
(
uart_nr
>=
SOC_UART_NUM
)
{
...
...
cores/esp32/esp32-hal-uart.h
View file @
b6f7d403
...
@@ -33,11 +33,11 @@ struct uart_struct_t;
...
@@ -33,11 +33,11 @@ struct uart_struct_t;
typedef
struct
uart_struct_t
uart_t
;
typedef
struct
uart_struct_t
uart_t
;
bool
_testUartBegin
(
bool
_testUartBegin
(
uint8_t
uart_nr
,
uint32_t
baudrate
,
uint32_t
config
,
int8_t
rxPin
,
int8_t
txPin
,
uint
16_t
rx_buffer_size
,
uint16
_t
tx_buffer_size
,
bool
inverted
,
uint8_t
uart_nr
,
uint32_t
baudrate
,
uint32_t
config
,
int8_t
rxPin
,
int8_t
txPin
,
uint
32_t
rx_buffer_size
,
uint32
_t
tx_buffer_size
,
bool
inverted
,
uint8_t
rxfifo_full_thrhd
uint8_t
rxfifo_full_thrhd
);
);
uart_t
*
uartBegin
(
uart_t
*
uartBegin
(
uint8_t
uart_nr
,
uint32_t
baudrate
,
uint32_t
config
,
int8_t
rxPin
,
int8_t
txPin
,
uint
16_t
rx_buffer_size
,
uint16
_t
tx_buffer_size
,
bool
inverted
,
uint8_t
uart_nr
,
uint32_t
baudrate
,
uint32_t
config
,
int8_t
rxPin
,
int8_t
txPin
,
uint
32_t
rx_buffer_size
,
uint32
_t
tx_buffer_size
,
bool
inverted
,
uint8_t
rxfifo_full_thrhd
uint8_t
rxfifo_full_thrhd
);
);
void
uartEnd
(
uint8_t
uart_num
);
void
uartEnd
(
uint8_t
uart_num
);
...
...
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