mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/nrf6310: remove board
This commit is contained in:
parent
76b9b711a8
commit
4953ba8e67
@ -1,16 +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 "nrf6310" if BOARD_NRF6310
|
||||
|
||||
config BOARD_NRF6310
|
||||
bool
|
||||
default y
|
||||
select BOARD_COMMON_NRF51
|
||||
select CPU_MODEL_NRF51X22XXAA
|
||||
|
||||
source "$(RIOTBOARD)/common/nrf51/Kconfig"
|
@ -1,3 +0,0 @@
|
||||
MODULE = board
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
@ -1 +0,0 @@
|
||||
include $(RIOTBOARD)/common/nrf51/Makefile.dep
|
@ -1,8 +0,0 @@
|
||||
CPU_MODEL = nrf51x22xxaa
|
||||
|
||||
# Put defined MCU peripherals here (in alphabetical order)
|
||||
FEATURES_PROVIDED += periph_spi
|
||||
FEATURES_PROVIDED += periph_uart
|
||||
|
||||
# include common nrf51 based boards features
|
||||
include $(RIOTBOARD)/common/nrf51/Makefile.features
|
@ -1,12 +0,0 @@
|
||||
# set default port depending on operating system
|
||||
PORT_LINUX ?= /dev/ttyUSB0
|
||||
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
||||
|
||||
# use jlink to program this board
|
||||
PROGRAMMER ?= jlink
|
||||
|
||||
# set required debug adapter for openocd if it's used
|
||||
OPENOCD_DEBUG_ADAPTER = jlink
|
||||
|
||||
# include nrf51 boards common configuration
|
||||
include $(RIOTBOARD)/common/nrf51/Makefile.include
|
@ -1,31 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2014 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_nrf6310
|
||||
* @{
|
||||
*
|
||||
* @file board.c
|
||||
* @brief Board specific implementations for the NRF6310 board
|
||||
*
|
||||
* @author Christian Kühling <kuehling@zedat.fu-berlin.de>
|
||||
* @author Timo Ziegler <timo.ziegler@fu-berlin.de>
|
||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||
*
|
||||
* @}
|
||||
*/
|
||||
|
||||
#include "board.h"
|
||||
#include "cpu.h"
|
||||
|
||||
void led_init(void)
|
||||
{
|
||||
/* initialize and turn off on-board LEDs */
|
||||
NRF_GPIO->DIRSET = LED0_MASK | LED1_MASK | LED2_MASK;
|
||||
NRF_GPIO->OUTSET = LED0_MASK | LED1_MASK | LED2_MASK;
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
/**
|
||||
@defgroup boards_nrf6310 NRF6310 (Nordic NRF Hardware Development Kit)
|
||||
@ingroup boards
|
||||
@brief Support for the nRF51 boards: nrf6310 or MOMMOSOFT BLE DEVKIT.N
|
||||
*/
|
@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2014 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_nrf6310
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Board specific definitions for the nRF51 evaluation board nrf6310
|
||||
*
|
||||
* @author Christian Kühling <kuehling@zedat.fu-berlin.de>
|
||||
* @author Timo Ziegler <timo.ziegler@fu-berlin.de>
|
||||
* @author Frank Holtz <frank-riot2015@holtznet.de>
|
||||
*/
|
||||
|
||||
#ifndef BOARD_H
|
||||
#define BOARD_H
|
||||
|
||||
#include "cpu.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @name LED pin definitions and handlers
|
||||
* @{
|
||||
*/
|
||||
#define LED0_PIN GPIO_PIN(0, 8)
|
||||
#define LED1_PIN GPIO_PIN(0, 9)
|
||||
#define LED2_PIN GPIO_PIN(0, 10)
|
||||
|
||||
#define LED0_MASK (1 << 8)
|
||||
#define LED1_MASK (1 << 9)
|
||||
#define LED2_MASK (1 << 10)
|
||||
|
||||
#define LED0_ON (NRF_GPIO->OUTCLR = LED0_MASK)
|
||||
#define LED0_OFF (NRF_GPIO->OUTSET = LED0_MASK)
|
||||
#define LED0_TOGGLE (NRF_GPIO->OUT ^= LED0_MASK)
|
||||
|
||||
#define LED1_ON (NRF_GPIO->OUTCLR = LED1_MASK)
|
||||
#define LED1_OFF (NRF_GPIO->OUTSET = LED1_MASK)
|
||||
#define LED1_TOGGLE (NRF_GPIO->OUT ^= LED1_MASK)
|
||||
|
||||
#define LED2_ON (NRF_GPIO->OUTCLR = LED2_MASK)
|
||||
#define LED2_OFF (NRF_GPIO->OUTSET = LED2_MASK)
|
||||
#define LED2_TOGGLE (NRF_GPIO->OUT ^= LED2_MASK)
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* BOARD_H */
|
||||
/** @} */
|
@ -1,82 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2014 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_nrf6310
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @brief Peripheral MCU configuration for the nRF51 board nrf6310
|
||||
*
|
||||
* @author Christian Kühling <kuehling@zedat.fu-berlin.de>
|
||||
* @author Timo Ziegler <timo.ziegler@fu-berlin.de>
|
||||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
||||
* @author Frank Holtz <frank-riot2015@holtznet.de>
|
||||
*/
|
||||
|
||||
#ifndef PERIPH_CONF_H
|
||||
#define PERIPH_CONF_H
|
||||
|
||||
#include "periph_cpu.h"
|
||||
#include "cfg_clock_16_1.h"
|
||||
#include "cfg_timer_012.h"
|
||||
#include "cfg_rtt_default.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @name UART configuration
|
||||
* @{
|
||||
*/
|
||||
static const uart_conf_t uart_config[] = {
|
||||
{
|
||||
.dev = NRF_UART0,
|
||||
.rx_pin = GPIO_PIN(0, 16),
|
||||
.tx_pin = GPIO_PIN(0, 17),
|
||||
#ifdef MODULE_PERIPH_UART_HW_FC
|
||||
.rts_pin = GPIO_PIN(0, 19),
|
||||
.cts_pin = GPIO_PIN(0, 18),
|
||||
#endif
|
||||
.irqn = UART0_IRQn,
|
||||
},
|
||||
};
|
||||
|
||||
#define UART_NUMOF ARRAY_SIZE(uart_config)
|
||||
#define UART_0_ISR isr_uart0
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
* @name SPI configuration
|
||||
* @{
|
||||
*/
|
||||
static const spi_conf_t spi_config[] = {
|
||||
{
|
||||
.dev = NRF_SPI0,
|
||||
.sclk = 23,
|
||||
.mosi = 22,
|
||||
.miso = 20
|
||||
},
|
||||
{
|
||||
.dev = NRF_SPI1,
|
||||
.sclk = 16,
|
||||
.mosi = 17,
|
||||
.miso = 18
|
||||
}
|
||||
};
|
||||
|
||||
#define SPI_NUMOF ARRAY_SIZE(spi_config)
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* PERIPH_CONF_H */
|
||||
/** @} */
|
Loading…
Reference in New Issue
Block a user