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
f3c1a91f
Commit
f3c1a91f
authored
Mar 03, 2019
by
Mike Dunston
Committed by
Me No Dev
Mar 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding uartRxActive to expose the RX state machine status as a boolean value (#2457)
parent
5af03361
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
cores/esp32/esp32-hal-uart.c
cores/esp32/esp32-hal-uart.c
+7
-0
cores/esp32/esp32-hal-uart.h
cores/esp32/esp32-hal-uart.h
+2
-0
No files found.
cores/esp32/esp32-hal-uart.c
View file @
f3c1a91f
...
...
@@ -558,3 +558,10 @@ uartDetectBaudrate(uart_t *uart)
return
default_rates
[
i
];
}
/*
* Returns the status of the RX state machine, if the value is non-zero the state machine is active.
*/
bool
uartRxActive
(
uart_t
*
uart
)
{
return
uart
->
dev
->
status
.
st_urx_out
!=
0
;
}
cores/esp32/esp32-hal-uart.h
View file @
f3c1a91f
...
...
@@ -74,6 +74,8 @@ int uartGetDebug();
unsigned
long
uartDetectBaudrate
(
uart_t
*
uart
);
bool
uartRxActive
(
uart_t
*
uart
);
#ifdef __cplusplus
}
#endif
...
...
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