mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
boards: remove Senslab wsn430 boards
These boards are no longer available on IoT-LAB
This commit is contained in:
parent
9d0253bed3
commit
8b8e281789
@ -1,18 +0,0 @@
|
||||
# Copyright (c) 2020 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.
|
||||
|
||||
config BOARD
|
||||
default "wsn430" if BOARD_WSN430
|
||||
|
||||
config BOARD_COMMON_WSN430
|
||||
bool
|
||||
default y
|
||||
select CPU_MODEL_MSP430F1611
|
||||
select HAS_PERIPH_GPIO
|
||||
select HAS_PERIPH_GPIO_IRQ
|
||||
select HAS_PERIPH_TIMER
|
||||
select HAS_PERIPH_SPI
|
||||
select HAS_PERIPH_UART
|
@ -1,3 +0,0 @@
|
||||
MODULE = boards_common_wsn430
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -1,2 +0,0 @@
|
||||
# include this module in the build
|
||||
USEMODULE += boards_common_wsn430
|
@ -1,8 +0,0 @@
|
||||
CPU = msp430fxyz
|
||||
CPU_MODEL = msp430f1611
|
||||
|
||||
# Put defined MCU peripherals here (in alphabetical order)
|
||||
FEATURES_PROVIDED += periph_gpio periph_gpio_irq
|
||||
FEATURES_PROVIDED += periph_timer
|
||||
FEATURES_PROVIDED += periph_spi
|
||||
FEATURES_PROVIDED += periph_uart
|
@ -1,12 +0,0 @@
|
||||
# use common wsn430 includes
|
||||
INCLUDES += -I$(RIOTBOARD)/common/wsn430/include
|
||||
|
||||
# configure the serial interface
|
||||
PORT_LINUX ?= /dev/ttyUSB0
|
||||
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
||||
include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
|
||||
# configure the flash tool
|
||||
FLASHER = mspdebug
|
||||
FLASHFILE ?= $(HEXFILE)
|
||||
FFLAGS = -d $(PROG_DEV) -j uif "prog $(FLASHFILE)"
|
@ -1,102 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2013 Milan Babel <babel@inf.fu-berlin.de>
|
||||
* 2017 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ingroup boards_common_wsn430
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Board initialization for WSN430
|
||||
*
|
||||
* @author Milan Babel <babel@inf.fu-berlin.de>
|
||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||
*
|
||||
* @}
|
||||
*/
|
||||
|
||||
#include "cpu.h"
|
||||
#include "irq.h"
|
||||
#include "assert.h"
|
||||
#include "stdio_uart.h"
|
||||
#include "periph_conf.h"
|
||||
|
||||
enum {
|
||||
MCLK_2MHZ_SCLK_1MHZ = (SELM_2 | DIVM_2 | SELS | DIVS_3),
|
||||
MCLK_4MHZ_SCLK_1MHZ = (SELM_2 | DIVM_1 | SELS | DIVS_3),
|
||||
MCLK_8MHZ_SCLK_1MHZ = (SELM_2 | SELS | DIVS_3),
|
||||
MCLK_8MHZ_SCLK_8MHZ = (SELM_2 | SELS),
|
||||
};
|
||||
|
||||
static void msb_ports_init(void)
|
||||
{
|
||||
/* Port 1: GDO, Flash, BSL TX */
|
||||
P1SEL = 0x02; /* Port1 Select: 00000010 = 0x02 */
|
||||
P1OUT = 0x00; /* Port1 Output: 00000000 = 0x00 */
|
||||
P1DIR = 0x87; /* Port1 Direction: 10000111 = 0x87 */
|
||||
|
||||
/* Port 2: GPIO, BSL RX, 1wire */
|
||||
P2SEL = 0x04; /* Port2 Select: 00000100 = 0x04 */
|
||||
P2OUT = 0x00; /* Port2 Output: 00000000 = 0x00 */
|
||||
P2DIR = 0xFF; /* Port2 Direction: 11111111 = 0xFF */
|
||||
|
||||
|
||||
/* Port 3: UART */
|
||||
P3SEL = 0xFE; /* Port3 Select: 11111110 = 0xFE */
|
||||
P3OUT = 0x00; /* Port3 Output: 00000000 = 0x00 */
|
||||
P3DIR = 0xFF; /* Port3 Direction: 11111111 = 0xFF */
|
||||
|
||||
|
||||
/* Port 4: CS */
|
||||
P4SEL = 0x00; /* Port4 Select: 00000000 = 0x00 */
|
||||
P4OUT = 0x14; /* Port4 Output: 00010100 = 0x14 */
|
||||
P4DIR = 0xFF; /* Port4 Direction: 11111111 = 0xFF */
|
||||
|
||||
/* Port 5: SPI, LED */
|
||||
P5SEL = 0x0E; /* Port5 Select: 00001110 = 0x0E */
|
||||
P5OUT = 0x70; /* Port5 Output: 01110000 = 0x70 */
|
||||
P5DIR = 0x70; /* Port5 Direction: 01110000 = 0x70 */
|
||||
|
||||
|
||||
P6SEL = 0xFF; /* Port6 Select: 11111111 = 0xFF */
|
||||
P6OUT = 0x00; /* Port6 Output: 00000000 = 0x00 */
|
||||
P6DIR = 0xFF; /* Port6 Direction: 11111000 = 0xF8 */
|
||||
|
||||
}
|
||||
|
||||
static void msp430_init_cpuclk(uint8_t speed)
|
||||
{
|
||||
/* stop watchdog */
|
||||
WDTCTL = WDTPW + WDTHOLD;
|
||||
BCSCTL1 = RSEL2;
|
||||
|
||||
/* wait for XTAL to stabilize */
|
||||
do {
|
||||
/* clear oscillator fault flag */
|
||||
IFG1 &= ~OFIFG;
|
||||
/* time for flag to set */
|
||||
for (uint16_t i = 0xFF; i > 0; i--) {}
|
||||
} while ((IFG1 & OFIFG) != 0);
|
||||
|
||||
/* apply clock config */
|
||||
BCSCTL2 = speed;
|
||||
}
|
||||
|
||||
void board_init(void)
|
||||
{
|
||||
msp430_cpu_init();
|
||||
msb_ports_init();
|
||||
|
||||
/* initialize CPU clock */
|
||||
unsigned state = irq_disable();
|
||||
msp430_init_cpuclk(CLOCK_MODE);
|
||||
irq_restore(state);
|
||||
|
||||
/* initialize STDIO over UART */
|
||||
stdio_init();
|
||||
}
|
@ -1,77 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2013 Milan Babel <babel@inf.fu-berlin.de>
|
||||
* 2015-2017 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_common_wsn430 Shared WSN430 files
|
||||
* @ingroup boards_common
|
||||
* @brief Common files for WSN430 based boards
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Common definitions for WSN430 based boards
|
||||
*
|
||||
* @author Milan Babel <babel@inf.fu-berlin.de>
|
||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef BOARD_COMMON_H
|
||||
#define BOARD_COMMON_H
|
||||
|
||||
#include "cpu.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Address of the info memory
|
||||
*/
|
||||
#define INFOMEM (0x1000)
|
||||
|
||||
/**
|
||||
* @name Xtimer configuration
|
||||
* @{
|
||||
*/
|
||||
#define XTIMER_WIDTH (16)
|
||||
#define XTIMER_BACKOFF (40)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name LED pin definitions and handlers
|
||||
* @{
|
||||
*/
|
||||
#define LED0_PIN GPIO_PIN(4, 4)
|
||||
#define LED1_PIN GPIO_PIN(4, 5)
|
||||
#define LED2_PIN GPIO_PIN(4, 6)
|
||||
|
||||
#define LED_DIR_REG P5DIR
|
||||
#define LED0_MASK (1 << 4)
|
||||
#define LED1_MASK (1 << 5)
|
||||
#define LED2_MASK (1 << 6)
|
||||
|
||||
#define LED0_ON (LED_DIR_REG &=~LED0_MASK)
|
||||
#define LED0_OFF (LED_DIR_REG |= LED0_MASK)
|
||||
#define LED0_TOGGLE (LED_DIR_REG ^= LED0_MASK)
|
||||
|
||||
#define LED1_ON (LED_DIR_REG &=~LED1_MASK)
|
||||
#define LED1_OFF (LED_DIR_REG |= LED1_MASK)
|
||||
#define LED1_TOGGLE (LED_DIR_REG ^= LED1_MASK)
|
||||
|
||||
#define LED2_ON (LED_DIR_REG &=~LED2_MASK)
|
||||
#define LED2_OFF (LED_DIR_REG |= LED2_MASK)
|
||||
#define LED2_TOGGLE (LED_DIR_REG ^= LED2_MASK)
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* BOARD_COMMON_H */
|
||||
/** @} */
|
@ -1,94 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2014 INRIA
|
||||
* 2015,2017 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ingroup boards_common_wsn430
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief WSN430 peripheral configuration
|
||||
*
|
||||
* @author Oliver Hahm <oliver.hahm@inria.fr>
|
||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||
*/
|
||||
|
||||
#ifndef PERIPH_CONF_H
|
||||
#define PERIPH_CONF_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @name Clock configuration
|
||||
* @{
|
||||
*/
|
||||
#define CLOCK_CORECLOCK (8000000UL)
|
||||
#define CLOCK_MODE (MCLK_8MHZ_SCLK_8MHZ)
|
||||
#define CLOCK_CMCLK (CLOCK_CORECLOCK) /* no divider programmed */
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name Timer configuration
|
||||
* @{
|
||||
*/
|
||||
#define TIMER_NUMOF (1U)
|
||||
#define TIMER_BASE (TIMER_A)
|
||||
#define TIMER_CHAN (3)
|
||||
#define TIMER_ISR_CC0 (TIMERA0_VECTOR)
|
||||
#define TIMER_ISR_CCX (TIMERA1_VECTOR)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name UART configuration
|
||||
* @{
|
||||
*/
|
||||
#define UART_NUMOF (1U)
|
||||
#define UART_0_EN (1U)
|
||||
|
||||
#define UART_BASE (USART_0)
|
||||
#define UART_IE (SFR->IE1)
|
||||
#define UART_IF (SFR->IFG1)
|
||||
#define UART_IE_RX_BIT (1 << 6)
|
||||
#define UART_IE_TX_BIT (1 << 7)
|
||||
#define UART_ME (SFR->ME1)
|
||||
#define UART_ME_BITS (0xc0)
|
||||
#define UART_PORT (PORT_3)
|
||||
#define UART_RX_PIN (1 << 4)
|
||||
#define UART_TX_PIN (1 << 5)
|
||||
#define UART_RX_ISR (USART0RX_VECTOR)
|
||||
#define UART_TX_ISR (USART0TX_VECTOR)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name SPI configuration
|
||||
* @{
|
||||
*/
|
||||
#define SPI_NUMOF (1U)
|
||||
|
||||
/* SPI configuration */
|
||||
#define SPI_BASE (USART_0)
|
||||
#define SPI_IE (SFR->IE1)
|
||||
#define SPI_IF (SFR->IFG1)
|
||||
#define SPI_IE_RX_BIT (1 << 6)
|
||||
#define SPI_IE_TX_BIT (1 << 7)
|
||||
#define SPI_ME (SFR->ME1)
|
||||
#define SPI_ME_BIT (1 << 6)
|
||||
#define SPI_PIN_MISO GPIO_PIN(P5,2)
|
||||
#define SPI_PIN_MOSI GPIO_PIN(P5,1)
|
||||
#define SPI_PIN_CLK GPIO_PIN(P5,3)
|
||||
/** @} */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* PERIPH_CONF_H */
|
||||
/** @} */
|
@ -1,15 +0,0 @@
|
||||
# Copyright (c) 2020 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.
|
||||
|
||||
config BOARD
|
||||
default "wsn430-v1_3b" if BOARD_WSN430_V1_3B
|
||||
|
||||
config BOARD_WSN430_V1_3B
|
||||
bool
|
||||
default y
|
||||
select BOARD_COMMON_WSN430
|
||||
|
||||
source "$(RIOTBOARD)/common/wsn430/Kconfig"
|
@ -1,4 +0,0 @@
|
||||
MODULE = board
|
||||
DIRS = $(RIOTBOARD)/common/wsn430
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -1 +0,0 @@
|
||||
include $(RIOTBOARD)/common/wsn430/Makefile.dep
|
@ -1 +0,0 @@
|
||||
include $(RIOTBOARD)/common/wsn430/Makefile.features
|
@ -1 +0,0 @@
|
||||
include $(RIOTBOARD)/common/wsn430/Makefile.include
|
@ -1,5 +0,0 @@
|
||||
/**
|
||||
@defgroup boards_wsn430-v1_3b WSN430 v1.3b
|
||||
@ingroup boards
|
||||
@brief Support for the Senslab WSN430 V1 Rev 3b
|
||||
*/
|
@ -1,44 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ingroup boards_wsn430-v1_3b
|
||||
* @brief Support for the Senslab WSN430 v1.3b board
|
||||
*
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Board specific definitions for the Senslab WSN430 v1.3b board
|
||||
*
|
||||
* @author Martine Lenders <m.lenders@fu-berlin.de>
|
||||
*/
|
||||
#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 */
|
||||
/** @} */
|
@ -1,15 +0,0 @@
|
||||
# Copyright (c) 2020 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.
|
||||
|
||||
config BOARD
|
||||
default "wsn430-v1_4" if BOARD_WSN430_V1_4
|
||||
|
||||
config BOARD_WSN430_V1_4
|
||||
bool
|
||||
default y
|
||||
select BOARD_COMMON_WSN430
|
||||
|
||||
source "$(RIOTBOARD)/common/wsn430/Kconfig"
|
@ -1,4 +0,0 @@
|
||||
MODULE = board
|
||||
DIRS = $(RIOTBOARD)/common/wsn430
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -1 +0,0 @@
|
||||
include $(RIOTBOARD)/common/wsn430/Makefile.dep
|
@ -1 +0,0 @@
|
||||
include $(RIOTBOARD)/common/wsn430/Makefile.features
|
@ -1 +0,0 @@
|
||||
include $(RIOTBOARD)/common/wsn430/Makefile.include
|
@ -1,5 +0,0 @@
|
||||
/**
|
||||
@defgroup boards_wsn430-v1_4 WSN430 v1.4
|
||||
@ingroup boards
|
||||
@brief Support for the Senslab WSN430 V1 Rev 4
|
||||
*/
|
@ -1,47 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ingroup boards_wsn430-v1_4
|
||||
* @brief Support for the Senslab WSN430 v1.4 board
|
||||
*
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Board specific definitions for the Senslab WSN430 v1.4 board
|
||||
*
|
||||
* @author Martine Lenders <m.lenders@fu-berlin.de>
|
||||
*/
|
||||
#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 */
|
||||
/** @} */
|
Loading…
Reference in New Issue
Block a user