zephyr/boards/arm/nrf52_vbluno52/board.h
Mieszko Mierunski 4f6aac1a67 dts: nrf5: Changed GPIO and GPIOTE define names
Changed names using nrf5 to nrf for consistency with other drivers.

Signed-off-by: Mieszko Mierunski <mieszko.mierunski@nordicsemi.no>
2018-08-17 07:29:14 -07:00

26 lines
516 B
C

/*
* Copyright (c) 2017 VNG IoT Lab Limited.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __INC_BOARD_H
#define __INC_BOARD_H
#include <soc.h>
/* Button*/
#define BUT_GPIO_PIN 17
#define BUT_GPIO_NAME CONFIG_GPIO_P0_DEV_NAME
#define SW0_GPIO_PIN BUT_GPIO_PIN
#define SW0_GPIO_NAME BUT_GPIO_NAME
/* Onboard GREEN LED 0 */
#define LED0_GPIO_PIN 12
#define LED0_GPIO_PORT CONFIG_GPIO_P0_DEV_NAME
#define LED_GPIO_PIN LED0_GPIO_PIN
#define LED_GPIO_PORT LED0_GPIO_PORT
#endif /* __INC_BOARD_H */