/* * Copyright (C) 2017 HAW Hamburg * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup boards_acd52832 * * For more information: http://aconno.de/acd52832/ * * @{ * * @file * @brief Board specific configuration for the ACD52832 * * @author Dimitri Nahm */ #ifndef BOARD_H #define BOARD_H #include "cpu.h" #ifdef __cplusplus extern "C" { #endif /** * @name LED pin configuration * @{ */ #define LED0_PIN GPIO_PIN(0, 26) #define LED_PORT (NRF_P0) #define LED0_MASK (1 << 26) #define LED0_ON (LED_PORT->OUTCLR = LED0_MASK) #define LED0_OFF (LED_PORT->OUTSET = LED0_MASK) #define LED0_TOGGLE (LED_PORT->OUT ^= LED0_MASK) /** @} */ /** * @name Button pin configuration * @{ */ #define BTN0_PIN GPIO_PIN(0, 25) #define BTN0_MODE GPIO_IN_PU /** @} */ #ifdef __cplusplus } #endif #endif /* BOARD_H */ /** @} */