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:
parent
bfb7cbfa4d
commit
ef96696bab
14
boards/common/e104-bt50xxa-tb/Kconfig
Normal file
14
boards/common/e104-bt50xxa-tb/Kconfig
Normal 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"
|
3
boards/common/e104-bt50xxa-tb/Makefile
Normal file
3
boards/common/e104-bt50xxa-tb/Makefile
Normal file
@ -0,0 +1,3 @@
|
||||
MODULE = boards_common_e104_bt50xxa_tb
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
5
boards/common/e104-bt50xxa-tb/Makefile.dep
Normal file
5
boards/common/e104-bt50xxa-tb/Makefile.dep
Normal file
@ -0,0 +1,5 @@
|
||||
ifneq (,$(filter saul_default,$(USEMODULE)))
|
||||
USEMODULE += saul_gpio
|
||||
endif
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.dep
|
7
boards/common/e104-bt50xxa-tb/Makefile.features
Normal file
7
boards/common/e104-bt50xxa-tb/Makefile.features
Normal 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
|
6
boards/common/e104-bt50xxa-tb/Makefile.include
Normal file
6
boards/common/e104-bt50xxa-tb/Makefile.include
Normal 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
|
@ -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>
|
||||
*
|
6
boards/common/e104-bt50xxa-tb/doc.txt
Normal file
6
boards/common/e104-bt50xxa-tb/doc.txt
Normal 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
|
||||
|
||||
*/
|
@ -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>
|
||||
*/
|
@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ingroup boards_e104-bt5010a-tb
|
||||
* @ingroup boards_common_e104-bt50xxa-tb
|
||||
* @{
|
||||
*
|
||||
* @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 */
|
||||
/** @} */
|
||||
|
@ -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"
|
||||
|
@ -1,2 +1,5 @@
|
||||
MODULE = board
|
||||
|
||||
DIRS = $(RIOTBOARD)/common/e104-bt50xxa-tb
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,4 +1 @@
|
||||
# external programmer required
|
||||
DEBUG_ADAPTER ?= jlink
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52/Makefile.include
|
||||
include $(RIOTBOARD)/common/e104-bt50xxa-tb/Makefile.include
|
||||
|
Loading…
Reference in New Issue
Block a user