2018-03-01 12:50:52 +08:00
|
|
|
# Kconfig.nrf5 - Nordic Semiconductor nRF5x GPIO configuration options
|
2016-05-18 22:49:04 +08:00
|
|
|
#
|
2018-03-23 04:11:42 +08:00
|
|
|
# Copyright (c) 2016-2018 Nordic Semiconductor ASA
|
2016-05-18 22:49:04 +08:00
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-05-18 22:49:04 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig GPIO_NRF5
|
2018-03-01 12:50:52 +08:00
|
|
|
bool "Nordic Semiconductor nRF5x-based GPIO driver"
|
2018-03-19 20:51:25 +08:00
|
|
|
depends on GPIO && SOC_FAMILY_NRF
|
2016-05-18 22:49:04 +08:00
|
|
|
help
|
|
|
|
Enable GPIO driver for nRF5 line of MCUs.
|
|
|
|
|
|
|
|
if GPIO_NRF5
|
|
|
|
|
|
|
|
config GPIO_NRF5_P0
|
2018-03-01 12:50:52 +08:00
|
|
|
bool "nRF5x GPIO Port P0"
|
2016-05-18 22:49:04 +08:00
|
|
|
help
|
2016-08-26 05:19:14 +08:00
|
|
|
Enable nRF5 GPIO port P0 config options.
|
2016-05-18 22:49:04 +08:00
|
|
|
|
|
|
|
config GPIO_NRF5_P0_DEV_NAME
|
|
|
|
string "GPIO Port P0 Device Name"
|
|
|
|
depends on GPIO_NRF5_P0
|
|
|
|
default "GPIO_0"
|
|
|
|
help
|
|
|
|
Specify the device name to be used for the GPIO port.
|
|
|
|
|
2018-03-01 12:50:52 +08:00
|
|
|
config GPIO_NRF5_P1
|
|
|
|
bool "nRF5x GPIO Port P1"
|
|
|
|
depends on SOC_NRF52840
|
|
|
|
help
|
|
|
|
Enable nRF5 GPIO port P1 config options.
|
|
|
|
|
|
|
|
config GPIO_NRF5_P1_DEV_NAME
|
|
|
|
string "GPIO Port P1 Device Name"
|
|
|
|
depends on GPIO_NRF5_P1
|
|
|
|
default "GPIO_1"
|
|
|
|
help
|
|
|
|
Specify the device name to be used for the GPIO port.
|
|
|
|
|
|
|
|
config GPIOTE_NRF5_PRI
|
|
|
|
int "GPIOTE interrupt priority"
|
|
|
|
depends on GPIO_NRF5_P0 || GPIO_NRF5_P1
|
2018-03-23 04:11:42 +08:00
|
|
|
range 0 2 if SOC_SERIES_NRF51X
|
2016-10-13 04:45:44 +08:00
|
|
|
range 0 5 if SOC_SERIES_NRF52X
|
2018-03-23 04:11:42 +08:00
|
|
|
default 2 if SOC_SERIES_NRF51X
|
|
|
|
default 5 if SOC_SERIES_NRF52X
|
2016-05-18 22:49:04 +08:00
|
|
|
help
|
2018-03-01 12:50:52 +08:00
|
|
|
nRF5 GPIOTE IRQ priority.
|
2016-05-18 22:49:04 +08:00
|
|
|
|
|
|
|
endif # GPIO_NRF5
|