1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/common/e104-bt50xxa-tb: common board for Ebyte nRF52 breakouts

This commit is contained in:
Benjamin Valentin 2020-11-05 22:40:38 +01:00
parent bfb7cbfa4d
commit ef96696bab
15 changed files with 59 additions and 29 deletions

View File

@ -0,0 +1,14 @@
# Copyright (c) 2020 Benjamin Valentin
#
# 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_COMMON_E104_BT50XXA_TB
bool
select BOARD_COMMON_NRF52
select HAS_PERIPH_I2C
select HAS_PERIPH_SPI
select HAS_PERIPH_UART
source "$(RIOTBOARD)/common/nrf52/Kconfig"

View File

@ -0,0 +1,3 @@
MODULE = boards_common_e104_bt50xxa_tb
include $(RIOTBASE)/Makefile.base

View File

@ -0,0 +1,5 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += saul_gpio
endif
include $(RIOTBOARD)/common/nrf52/Makefile.dep

View File

@ -0,0 +1,7 @@
# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_rtt
FEATURES_PROVIDED += periph_uart
include $(RIOTBOARD)/common/nrf52/Makefile.features

View File

@ -0,0 +1,6 @@
# external programmer required
DEBUG_ADAPTER ?= jlink
INCLUDES += -I$(RIOTBOARD)/common/e104-bt50xxa-tb/include
include $(RIOTBOARD)/common/nrf52/Makefile.include

View File

@ -7,11 +7,11 @@
*/
/**
* @ingroup boards_e104-bt5010a-tb
* @ingroup boards_common_e104-bt50xxa-tb
* @{
*
* @file
* @brief Board initialization for the E104-BT5010A Test Board
* @brief Board initialization for the E104-BT50xxA Test Board
*
* @author Benjamin Valentin <benpicco@googlemail.com>
*

View File

@ -0,0 +1,6 @@
/**
@defgroup boards_common_e104-bt50xxa-tb E104-BT50xxA-TB common code
@ingroup boards_common
@brief Support for EBYTE nRF52 module breakout boards
*/

View File

@ -7,11 +7,11 @@
*/
/**
* @ingroup boards_e104-bt5010a-tb
* @ingroup boards_common_e104-bt50xxa-tb
* @{
*
* @file
* @brief Board specific configuration for the E104-BT5010A Test Board
* @brief Board specific configuration for the E104-BT50xxA Test Board
*
* @author Benjamin Valentin <benpicco@googlemail.com>
*/

View File

@ -7,7 +7,7 @@
*/
/**
* @ingroup boards_e104-bt5010a-tb
* @ingroup boards_common_e104-bt50xxa-tb
* @{
*
* @file

View File

@ -7,11 +7,11 @@
*/
/**
* @ingroup boards_e104-bt5010a-tb
* @ingroup boards_common_e104-bt50xxa-tb
* @{
*
* @file
* @brief Peripheral configuration for the E104-BT5010A Test Board
* @brief Peripheral configuration for the E104-BT50xxA Test Board
*
* @author Benjamin Valentin <benpicco@googlemail.com>
*
@ -30,10 +30,10 @@ extern "C" {
/**
* @name Clock configuration
* The E104-BT5010A module does not have any external oscillators
* The E104-BT50xxA module does not have any external oscillators
* @{
*/
#define CLOCK_HFCLK (0U) /* internal RC oscillator */
#define CLOCK_HFCLK (1) /* external crystal */
#define CLOCK_LFCLK (0) /* internal RC oscillator */
/** @} */

View File

@ -10,10 +10,7 @@ config BOARD
config BOARD_E104_BT5010A_TB
bool
default y
select BOARD_COMMON_NRF52
select BOARD_COMMON_E104_BT50XXA_TB
select CPU_MODEL_NRF52810XXAA
select HAS_PERIPH_I2C
select HAS_PERIPH_SPI
select HAS_PERIPH_UART
source "$(RIOTBOARD)/common/nrf52/Kconfig"
source "$(RIOTBOARD)/common/e104-bt50xxa-tb/Kconfig"

View File

@ -1,2 +1,5 @@
MODULE = board
DIRS = $(RIOTBOARD)/common/e104-bt50xxa-tb
include $(RIOTBASE)/Makefile.base

View File

@ -1,5 +1,3 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += saul_gpio
endif
USEMODULE += boards_common_e104_bt50xxa_tb
include $(RIOTBOARD)/common/nrf52/Makefile.dep
include $(RIOTBOARD)/common/e104-bt50xxa-tb/Makefile.dep

View File

@ -1,9 +1,3 @@
CPU_MODEL = nrf52810xxaa
# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_rtt
FEATURES_PROVIDED += periph_uart
include $(RIOTBOARD)/common/nrf52/Makefile.features
include $(RIOTBOARD)/common/e104-bt50xxa-tb/Makefile.features

View File

@ -1,4 +1 @@
# external programmer required
DEBUG_ADAPTER ?= jlink
include $(RIOTBOARD)/common/nrf52/Makefile.include
include $(RIOTBOARD)/common/e104-bt50xxa-tb/Makefile.include