Skip to content
Permalink
Browse files

boards: reel_board: enable pull-up on UART TX pin

Enable pull-up on UART TX pin to reduce power consumption.
If the board is powered by battery the SoC consumes more
power than expected.
The consumption increases because TX pin is floating
(High-Impedance state of pin B from Dual-Supply Bus Transceiver).

Similar to commit b5b7284
("boards: reel_board: enable pull-up on UART RX pin")

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
  • Loading branch information...
jfischer-phytec-iot authored and nashif committed Apr 8, 2019
1 parent f19787b commit 0b2a9b1bdd7d911a11903792c484c6762444dd14
Showing with 5 additions and 0 deletions.
  1. +5 −0 boards/arm/reel_board/board.c
@@ -37,6 +37,11 @@ static int board_reel_board_init(struct device *dev)
(GPIO_PIN_CNF_INPUT_Disconnect << GPIO_PIN_CNF_INPUT_Pos) |
(GPIO_PIN_CNF_PULL_Pullup << GPIO_PIN_CNF_PULL_Pos) |
(GPIO_PIN_CNF_DIR_Input << GPIO_PIN_CNF_DIR_Pos);
gpio->PIN_CNF[DT_NORDIC_NRF_UART_0_TX_PIN] =
(GPIO_PIN_CNF_INPUT_Disconnect << GPIO_PIN_CNF_INPUT_Pos) |
(GPIO_PIN_CNF_PULL_Pullup << GPIO_PIN_CNF_PULL_Pos) |
(GPIO_PIN_CNF_DIR_Input << GPIO_PIN_CNF_DIR_Pos);


return 0;
}

0 comments on commit 0b2a9b1

Please sign in to comment.
You can’t perform that action at this time.