-
Notifications
You must be signed in to change notification settings - Fork 225
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
base: main
Are you sure you want to change the base?
Conversation
df7b400
to
546fcfc
Compare
546fcfc
to
7310e4f
Compare
13284bc
to
87b6c49
Compare
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.
Look OK.
Could we have the commits squashed?
3b465f9
to
f687068
Compare
@nvlsianpu Can you rebase this, please? |
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]>
f687068
to
54eb381
Compare
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); |
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.
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
Added procedure which does configure UARTE pins to the default states. This allows to reduce power consumption if pin is floating.
Ref.: NCSIDB-1194