Skip to content

Commit

Permalink
Merge pull request #8391 from dhalbert/8.2.x-revert-8089-nrf-uart-pow…
Browse files Browse the repository at this point in the history
…er-saving

8.2.x revert #8089 nrf uart power saving
  • Loading branch information
tannewt authored Sep 12, 2023
2 parents 74f17b1 + 46bcd10 commit 09329fe
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ports/nrf/common-hal/busio/UART.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,8 @@ bool common_hal_busio_uart_deinited(busio_uart_obj_t *self) {
}

void common_hal_busio_uart_deinit(busio_uart_obj_t *self) {
volatile uint32_t *power_cycle = (void *)(self->uarte->p_reg) + 0xFFC;
if (!common_hal_busio_uart_deinited(self)) {
nrfx_uarte_rx_abort(self->uarte);
nrfx_uarte_tx_abort(self->uarte);
nrfx_uarte_uninit(self->uarte);
// power cycle the peripheral as per https://devzone.nordicsemi.com/f/nordic-q-a/26030/how-to-reach-nrf52840-uarte-current-supply-specification/102605#102605
*power_cycle = 0;
*power_cycle;
*power_cycle = 1;
reset_pin_number(self->tx_pin_number);
reset_pin_number(self->rx_pin_number);
reset_pin_number(self->rts_pin_number);
Expand Down

0 comments on commit 09329fe

Please sign in to comment.