boards: arm: nrf9160dk_nrf52840: use UICR gpio-as-nreset property
Instead of the about to be deprecated GPIO_AS_PINRESET. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
012fa5c5ef
commit
5d6d6f5b65
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ LOG_MODULE_REGISTER(board_control, CONFIG_BOARD_NRF9160DK_LOG_LEVEL);
|
|||
* exposes the nRESET function (P0.18 in nRF52840), there is no need to
|
||||
* provide any additional GPIO configuration for it.
|
||||
*/
|
||||
#define RESET_INPUT_IS_PINRESET (IS_ENABLED(CONFIG_GPIO_AS_PINRESET) && \
|
||||
#define RESET_INPUT_IS_PINRESET (DT_PROP(DT_NODELABEL(uicr), gpio_as_nreset) && \
|
||||
GET_PORT(reset_input, gpios, 0) == 0 && \
|
||||
GET_PIN(reset_input, gpios, 0) == 18)
|
||||
#define USE_RESET_GPIO \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue