Skip to content
Permalink
Browse files

tests: gpio: Added nRF board to gpio test

Added pin definitions for gpio tests for PCA10056, PCA10048
and PCA10028

Signed-off-by: Mieszko Mierunski <mieszko.mierunski@nordicsemi.no>
  • Loading branch information...
Mierunski authored and nashif committed Jul 3, 2018
1 parent 6d8220d commit b468b24d75e71e395729fa1efc901806f5787c49
Showing with 12 additions and 0 deletions.
  1. +12 −0 tests/drivers/gpio/gpio_basic_api/src/test_gpio.h
@@ -40,6 +40,18 @@
#define DEV_NAME CONFIG_GPIO_SAM0_PORTA_LABEL
#define PIN_OUT 20 /* PA20 / pin 6 */
#define PIN_IN 15 /* PA15 / pin 5 */
#elif defined(CONFIG_BOARD_NRF52840_PCA10056)
#define DEV_NAME CONFIG_GPIO_NRF5_P1_DEV_NAME
#define PIN_OUT 1 /* P1.01 */
#define PIN_IN 2 /* P1.02 */
#elif defined(CONFIG_BOARD_NRF52_PCA10040)
#define DEV_NAME CONFIG_GPIO_NRF5_P0_DEV_NAME
#define PIN_OUT 11 /* P0.11 */
#define PIN_IN 12 /* P0.12 */
#elif defined(CONFIG_BOARD_NRF51_PCA10028)
#define DEV_NAME CONFIG_GPIO_NRF5_P0_DEV_NAME
#define PIN_OUT 12 /* P0.12 */
#define PIN_IN 13 /* P0.13 */
#else
#error Unsupported board
#endif

0 comments on commit b468b24

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