mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards: slwstk6220a: remove support
This commit is contained in:
parent
67ce9e4db9
commit
4c2e6fdee1
@ -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
|
|
@ -1,3 +0,0 @@
|
|||||||
MODULE = board
|
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.base
|
|
@ -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
|
|
@ -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
|
|
@ -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 <hauke.petersen@fu-berlin.de>
|
|
||||||
*
|
|
||||||
* @}
|
|
||||||
*/
|
|
||||||
|
|
||||||
#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();
|
|
||||||
}
|
|
@ -1,5 +0,0 @@
|
|||||||
/**
|
|
||||||
@defgroup boards_slwstk6220a Silicon Labs WSTK6220 Eval Kit
|
|
||||||
@ingroup boards
|
|
||||||
@brief Support for the Silicon Labs WSTK6220 evaluation kit
|
|
||||||
*/
|
|
@ -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 <hauke.petersen@fu-berlin.de>
|
|
||||||
*/
|
|
||||||
|
|
||||||
#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 */
|
|
||||||
/** @} */
|
|
@ -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 <hauke.petersen@fu-berlin.de>
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PERIPH_CONF_H
|
|
||||||
#define PERIPH_CONF_H
|
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#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 */
|
|
||||||
/** @} */
|
|
Loading…
Reference in New Issue
Block a user