-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
esp8266/uart: rework uart io structure so it can work with dupterm() and be used to disable stdio #2891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
esp8266/uart: rework uart io structure so it can work with dupterm() and be used to disable stdio #2891
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
941568b
esp8266/uart: hardwire references to the uarts in ROOT
mhoffma 293f40a
esp8266/uart_poll: remove input_buf depend use RX buffer CNT
mhoffma d31d4b6
esp8266/uart: uart_rx_wait now use HW uart RXFIFO_CNT and STATUS for …
mhoffma 2cb4b5c
esp8266/uart: bottom half rx to call handler function to drain samples
mhoffma 3753d28
esp8266/uart: support uart redirection via dupterm
mhoffma a9c8f8d
esp8266/uart: dynamic buffer allocation for rxbuf via rxbuflen
mhoffma 1916cef
esp8266/uart: white space
mhoffma d325cc2
Merge remote-tracking branch 'original/master' into uart-multiplex
mhoffma 8f8fc5f
esp8266/uart: white space cleanup
mhoffma ab2301b
esp8266/uart: white space
mhoffma fcf1aa4
esp8266/uart: configure default rxbuflen default to 16
mhoffma b2a8bcb
esp8266/uart: white space
mhoffma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,8 @@ extern const struct _mp_print_t mp_debug_print; | |
extern ringbuf_t input_buf; | ||
// Call this after putting data to input_buf | ||
void mp_hal_signal_input(void); | ||
// Call this to put characters into connected uart buffer if repl connected | ||
void mp_hal_uart_rx_intr(int uart_no); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The way this function is currently implemented, it handles chars even if REPL is not connected. |
||
// Call this when data is available in dupterm object | ||
void mp_hal_signal_dupterm_input(void); | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO this belongs in machine_uart.c, since it's specific to UART behaviour. Also, since UART1 can't receive it doesn't need to take an argument.