Skip to content
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

boot/zephyr/nrf_cleanup: cleanup uarte pins #303

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nvlsianpu
Copy link
Contributor

Added procedure which does configure UARTE pins to the default states. This allows to reduce power consumption if pin is floating.

Ref.: NCSIDB-1194

@nvlsianpu nvlsianpu force-pushed the bugfix/NCSIDB_1194 branch from 13284bc to 87b6c49 Compare March 6, 2024 15:09
Copy link
Contributor

@de-nordic de-nordic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look OK.
Could we have the commits squashed?

@nvlsianpu nvlsianpu force-pushed the bugfix/NCSIDB_1194 branch 2 times, most recently from 3b465f9 to f687068 Compare March 11, 2024 16:14
@shanthanordic shanthanordic modified the milestones: ncs-2.6.0, ncs-2.7.0 Mar 15, 2024
@anangl
Copy link
Contributor

anangl commented Jun 6, 2024

@nvlsianpu Can you rebase this, please?

@shanthanordic
Copy link

moving it out of NCS 2.7.0 @nvlsianpu FYI

Added procedure which does configure UARTE pins to
the default states. This allows to reduce power consumption
if pin is floating.

clean-up UARTE only if its driver was enabled

Signed-off-by: Andrzej Puzdrowski <[email protected]>
Comment on lines 94 to +101
nrfy_uarte_disable(current);

uint32_t pin[4];

pin[0] = nrf_uarte_tx_pin_get(current);
pin[1] = nrf_uarte_rx_pin_get(current);
pin[2] = nrf_uarte_rts_pin_get(current);
pin[3] = nrf_uarte_cts_pin_get(current);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this mixes nrfy_uarte and nrf_uarte, should probably stick to nrfy_uarte and use nrfy_uarte_pins_get or just use nrfy_uarte_pins_disconnect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a known bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants