From 4c2e6fdee105832e0db6f54279baad53b5d7c41c Mon Sep 17 00:00:00 2001 From: Bas Stottelaar Date: Mon, 31 Dec 2018 01:02:20 +0100 Subject: [PATCH] boards: slwstk6220a: remove support --- boards/slwstk6220a/Kconfig | 15 ---- boards/slwstk6220a/Makefile | 3 - boards/slwstk6220a/Makefile.dep | 0 boards/slwstk6220a/Makefile.features | 6 -- boards/slwstk6220a/Makefile.include | 10 --- boards/slwstk6220a/board.c | 36 --------- boards/slwstk6220a/doc.txt | 5 -- boards/slwstk6220a/include/board.h | 84 --------------------- boards/slwstk6220a/include/periph_conf.h | 93 ------------------------ 9 files changed, 252 deletions(-) delete mode 100644 boards/slwstk6220a/Kconfig delete mode 100644 boards/slwstk6220a/Makefile delete mode 100644 boards/slwstk6220a/Makefile.dep delete mode 100644 boards/slwstk6220a/Makefile.features delete mode 100644 boards/slwstk6220a/Makefile.include delete mode 100644 boards/slwstk6220a/board.c delete mode 100644 boards/slwstk6220a/doc.txt delete mode 100644 boards/slwstk6220a/include/board.h delete mode 100644 boards/slwstk6220a/include/periph_conf.h diff --git a/boards/slwstk6220a/Kconfig b/boards/slwstk6220a/Kconfig deleted file mode 100644 index a9cacc99c3..0000000000 --- a/boards/slwstk6220a/Kconfig +++ /dev/null @@ -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 "slwstk6220a" if BOARD_SLWSTK6220A - -config BOARD_SLWSTK6220A - bool - default y - select CPU_MODEL_EZR32WG330F256R60 - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART diff --git a/boards/slwstk6220a/Makefile b/boards/slwstk6220a/Makefile deleted file mode 100644 index f8fcbb53a0..0000000000 --- a/boards/slwstk6220a/Makefile +++ /dev/null @@ -1,3 +0,0 @@ -MODULE = board - -include $(RIOTBASE)/Makefile.base diff --git a/boards/slwstk6220a/Makefile.dep b/boards/slwstk6220a/Makefile.dep deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/boards/slwstk6220a/Makefile.features b/boards/slwstk6220a/Makefile.features deleted file mode 100644 index 797093439f..0000000000 --- a/boards/slwstk6220a/Makefile.features +++ /dev/null @@ -1,6 +0,0 @@ -CPU = ezr32wg -CPU_MODEL = ezr32wg330f256r60 - -# Put defined MCU peripherals here (in alphabetical order) -FEATURES_PROVIDED += periph_timer -FEATURES_PROVIDED += periph_uart diff --git a/boards/slwstk6220a/Makefile.include b/boards/slwstk6220a/Makefile.include deleted file mode 100644 index 1bedea3b29..0000000000 --- a/boards/slwstk6220a/Makefile.include +++ /dev/null @@ -1,10 +0,0 @@ -# set default port depending on operating system -PORT_LINUX ?= /dev/ttyACM0 -PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*))) - -# setup JLink for flashing -JLINK_DEVICE = ezr32wg330f256 -include $(RIOTMAKE)/tools/jlink.inc.mk - -# setup serial terminal -include $(RIOTMAKE)/tools/serial.inc.mk diff --git a/boards/slwstk6220a/board.c b/boards/slwstk6220a/board.c deleted file mode 100644 index f9d2211d5e..0000000000 --- a/boards/slwstk6220a/board.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2015 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_slwstk6220a - * @{ - * - * @file - * @brief Board specific implementations WSTK6220 board - * - * @author Hauke Petersen - * - * @} - */ - -#include "board.h" -#include "cpu.h" -#include "periph/gpio.h" - -void board_init(void) -{ - /* enable access to the evaluation board controller chip. Without this, the - * board controller does not forward the UART output to the USB port */ - gpio_init(BC_PIN, GPIO_OUT); - gpio_set(BC_PIN); - /* initialize the boards LEDs */ - gpio_init(LED0_PIN, GPIO_OUT); - gpio_init(LED1_PIN, GPIO_OUT); - /* initialize the CPU */ - cpu_init(); -} diff --git a/boards/slwstk6220a/doc.txt b/boards/slwstk6220a/doc.txt deleted file mode 100644 index 6eccb5786d..0000000000 --- a/boards/slwstk6220a/doc.txt +++ /dev/null @@ -1,5 +0,0 @@ -/** -@defgroup boards_slwstk6220a Silicon Labs WSTK6220 Eval Kit -@ingroup boards -@brief Support for the Silicon Labs WSTK6220 evaluation kit - */ diff --git a/boards/slwstk6220a/include/board.h b/boards/slwstk6220a/include/board.h deleted file mode 100644 index 40a21574d2..0000000000 --- a/boards/slwstk6220a/include/board.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2015 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_slwstk6220a - * @{ - * - * @file - * @brief Board specific definitions for the WSTK6220 evaluation kit - * - * @author Hauke Petersen - */ - -#ifndef BOARD_H -#define BOARD_H - -#include "cpu.h" -#include "periph_conf.h" -#include "periph_cpu.h" -#include "periph/gpio.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @brief Assign the hardware timer - */ -#define HW_TIMER TIMER_DEV(0) - -/** - * @name Connection to the on-board temperature/humidity sensor (Si7021) - * @{ - */ -#define SI7021_I2C (I2C_0) -#define SI7021_ADDR (0) /* TODO */ -#define SI7021_EN_PIN GPIO_PIN(PF,8) -/** @} */ - -/** - * @brief GPIO pin for enabling communication through the board controller - */ -#define BC_PIN GPIO_PIN(PA,12) - -/** - * @name User button pin definitions - * @{ - */ -#define PB0_PIN GPIO_PIN(PE,3) -#define PB1_PIN GPIO_PIN(PE,2) -/** @} */ - -/** - * @name LED pin definitions - * @{ - */ -#define LED0_PIN GPIO_PIN(PF, 6) -#define LED1_PIN GPIO_PIN(PF, 7) - -#define LED0_ON gpio_set(LED0_PIN) -#define LED0_OFF gpio_clear(LED0_PIN) -#define LED0_TOGGLE gpio_toggle(LED0_PIN) - -#define LED1_ON gpio_set(LED1_PIN) -#define LED1_OFF gpio_clear(LED1_PIN) -#define LED1_TOGGLE gpio_toggle(LED1_PIN) -/** @} */ - -/** - * @brief Initialize board specific hardware, including clock, LEDs and std-IO - */ -void board_init(void); - -#ifdef __cplusplus -} -#endif - -#endif /* BOARD_H */ -/** @} */ diff --git a/boards/slwstk6220a/include/periph_conf.h b/boards/slwstk6220a/include/periph_conf.h deleted file mode 100644 index fcdd271400..0000000000 --- a/boards/slwstk6220a/include/periph_conf.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2015 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_slwstk6220a - * @{ - * - * @file - * @brief Configuration of CPU peripherals for the WSTK6220 board - * - * @author Hauke Petersen - */ - -#ifndef PERIPH_CONF_H -#define PERIPH_CONF_H - -#include -#include "cpu.h" -#include "periph_cpu.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name Clock configuration - * @{ - */ -#define CLOCK_RCOSC (14000000) /* internal RC oscillator speed */ -/* external oscillator speed, comment out if you want to use the internal RC - * oscillator circuit as a clock source */ -#define CLOCK_HFXO (48000000U) -/* define clock dividers */ -#define CLOCK_HFCORECLKDIV (1U) /* core clock divider */ -#define CLOCK_HFPERCLKDIV (1U) /* peripheral clock divider */ - -/* generate the actual clock values */ -#ifdef CLOCK_HFXO -#define CLOCK_CORECLOCK (CLOCK_HFXO / CLOCK_HFCORECLKDIV) -#else -#define CLOCK_CORECLOCK (CLOCK_RCOSC / CLOCK_HFCORECLKDIV) -#endif -#define CLOCK_HFPERCLK (CLOCK_CORECLOCK / CLOCK_HFPERCLKDIV) -/** @} */ - -/** - * @name Timer configuration - * @{ - */ -static const timer_conf_t timer_config[] = { - { - TIMER0, /* lower numbered timer, used as pre-scaler */ - TIMER1, /* higher numbered timer, this is the one */ - 5, /* pre-scaler bit in the CMU register */ - TIMER1_IRQn, /* IRQn of the higher numbered driver */ - } -}; - -#define TIMER_0_ISR isr_timer1 -#define TIMER_0_MAX_VALUE (0xffff) /* 16-bit timer */ -#define TIMER_NUMOF ARRAY_SIZE(timer_config) -/** @} */ - -/** - * @name UART configuration - * @{ - */ -static const uart_conf_t uart_config[] = { - { - USART2, /* device */ - GPIO_PIN(PB,4), /* RX pin */ - GPIO_PIN(PB,3), /* TX pin */ - 1, /* AF location */ - 2, /* bit in CMU enable register */ - USART2_RX_IRQn /* IRQ base channel */ - }, -}; - -#define UART_0_ISR_RX isr_usart2_rx -#define UART_NUMOF ARRAY_SIZE(uart_config) -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif /* PERIPH_CONF_H */ -/** @} */