WIP: Refactor DTR+RI UART handler#1
Merged
Conversation
7a6aecb to
1993752
Compare
Owner
There was a problem hiding this comment.
Suggested change
| gpio_pin_set_dt(&get_dev_config(get_dev(data))->ri_gpio, 1); | |
| gpio_pin_set_dt(&get_dev_config(get_dev(data))->ri_gpio, 0); |
Owner
There was a problem hiding this comment.
Is there an actual reason for not using nrf_gpio_cfg_sense_set?
Owner
There was a problem hiding this comment.
We have to use level triggered interrupts to achieve < 4uA sleeps.
Owner
There was a problem hiding this comment.
When would this be utilized? With AT#XSLEEP?
0d0bee2 to
0aab192
Compare
Work in progress: Not ready. * Refactor to use just Zephyr GPIO API * Use Devicetree to define pins * Refactor DTR UP/DOWN events to ASSERT/DEASSERT * Logic level 1 is asserted, use DT to change 0/1 level of that. * Remove support of DTE device, that is separate driver TODO: * sw_dtr should not keep RX buffers. Instead when RX is enabled, feed buffer to UART from application call. * When buffer is needed, make a callback to app to request a buffer. * When UART is powered down because of DTR, block RX_STOP and RX_DISABLE events going to application, so app thinks the UART keeps on going. Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
0aab192 to
01e1dcb
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
TODO: Not ready.