diff --git a/boards/common/wsn430/include/board.h b/boards/common/wsn430/include/board_common.h similarity index 96% rename from boards/common/wsn430/include/board.h rename to boards/common/wsn430/include/board_common.h index bc6a6714d5..df4069c0de 100644 --- a/boards/common/wsn430/include/board.h +++ b/boards/common/wsn430/include/board_common.h @@ -21,8 +21,8 @@ * */ -#ifndef BOARD_H -#define BOARD_H +#ifndef BOARD_COMMON_H +#define BOARD_COMMON_H #include "cpu.h" @@ -73,5 +73,5 @@ extern "C" { } #endif -#endif /* BOARD_H */ +#endif /* BOARD_COMMON_H */ /** @} */ diff --git a/boards/wsn430-v1_3b/include/board.h b/boards/wsn430-v1_3b/include/board.h new file mode 100644 index 0000000000..8a7865929e --- /dev/null +++ b/boards/wsn430-v1_3b/include/board.h @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2018 Freie Universität Berlin + * + * 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. + */ + +/** + * @defgroup boards_wsn430-v1_3b WSN430 v1.3b + * @ingroup boards + * @brief Support for the Senslab WSN430 v1.3b board + * + * @{ + * + * @file + * @brief Board specific definitions for the Senslab WSN430 v1.3b board + * + * @author Martine Lenders + */ +#ifndef BOARD_H +#define BOARD_H + +#include "board_common.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @name Define the interface to the CC1101 radio + * @{ + */ +#define CC110X_PARAM_CS (GPIO_PIN(P4, 2)) +#define CC110X_PARAM_GDO0 (GPIO_PIN(P1, 3)) +#define CC110X_PARAM_GDO1 (GPIO_PIN(P5, 2)) +#define CC110X_PARAM_GDO2 (GPIO_PIN(P1, 4)) +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif /* BOARD_H */ +/** @} */ diff --git a/boards/wsn430-v1_4/include/board.h b/boards/wsn430-v1_4/include/board.h new file mode 100644 index 0000000000..349c7c576e --- /dev/null +++ b/boards/wsn430-v1_4/include/board.h @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2018 Freie Universität Berlin + * + * 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. + */ + +/** + * @defgroup boards_wsn430-v1_4 WSN430 v1.4 + * @ingroup boards + * @brief Support for the Senslab WSN430 v1.4 board + * + * @{ + * + * @file + * @brief Board specific definitions for the Senslab WSN430 v1.4 board + * + * @author Martine Lenders + */ +#ifndef BOARD_H +#define BOARD_H + +#include "board_common.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @name Define the interface to the CC2420 radio + * @{ + */ +#define CC2420_PARAMS_PIN_CS (GPIO_PIN(P4, 2)) +#define CC2420_PARAMS_PIN_FIFO (GPIO_PIN(P1, 3)) +#define CC2420_PARAMS_PIN_FIFOP (GPIO_PIN(P1, 4)) +#define CC2420_PARAMS_PIN_CCA (GPIO_PIN(P1, 6)) +#define CC2420_PARAMS_PIN_SFD (GPIO_PIN(P1, 5)) +#define CC2420_PARAMS_PIN_VREFEN (GPIO_PIN(P3, 0)) +#define CC2420_PARAMS_PIN_RESET (GPIO_PIN(P1, 7)) +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif /* BOARD_H */ +/** @} */