diff --git a/boards/acd52832/Makefile.features b/boards/acd52832/Makefile.features index b99cfa472a..cf9d2b4ceb 100644 --- a/boards/acd52832/Makefile.features +++ b/boards/acd52832/Makefile.features @@ -1 +1,6 @@ -include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.features +# Put defined MCU peripherals here (in alphabetical order) +FEATURES_PROVIDED += periph_i2c +FEATURES_PROVIDED += periph_spi +FEATURES_PROVIDED += periph_uart + +include $(RIOTBOARD)/common/nrf52/Makefile.features diff --git a/boards/acd52832/Makefile.include b/boards/acd52832/Makefile.include index 889dce837c..aa09e9ea14 100644 --- a/boards/acd52832/Makefile.include +++ b/boards/acd52832/Makefile.include @@ -4,4 +4,4 @@ export CPU_MODEL = nrf52832xxaa # set default port depending on operating system PORT_LINUX ?= /dev/ttyUSB0 -include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.include +include $(RIOTBOARD)/common/nrf52/Makefile.include diff --git a/boards/acd52832/include/periph_conf.h b/boards/acd52832/include/periph_conf.h index 6664a8e204..06cac33fbd 100644 --- a/boards/acd52832/include/periph_conf.h +++ b/boards/acd52832/include/periph_conf.h @@ -23,6 +23,9 @@ #define PERIPH_CONF_H #include "periph_cpu.h" +#include "cfg_clock_32_1.h" +#include "cfg_rtt_default.h" +#include "cfg_timer_default.h" #ifdef __cplusplus extern "C" { @@ -31,44 +34,9 @@ extern "C" { /** * @name Clock configuration * - * @note The radio will not work with the internal RC oscillator! - * * @{ */ #define CLOCK_CORECLOCK (64000000U) /* fixed for all nRF52832 */ -#define CLOCK_HFCLK (32U) /* set to 0: internal RC oscillator - * 32: 32MHz crystal */ -#define CLOCK_LFCLK (1) /* set to 0: internal RC oscillator - * 1: 32.768 kHz crystal - * 2: derived from HFCLK */ -/** @} */ - -/** - * @name Timer configuration - * @{ - */ -static const timer_conf_t timer_config[] = { - { - .dev = NRF_TIMER1, - .channels = 3, - .bitmode = TIMER_BITMODE_BITMODE_32Bit, - .irqn = TIMER1_IRQn - } -}; - -#define TIMER_0_ISR isr_timer1 - -#define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0])) -/** @} */ - -/** - * @name Real time counter configuration - * @{ - */ -#define RTT_NUMOF (1U) -#define RTT_DEV (1) /* NRF_RTC1 */ -#define RTT_MAX_VALUE (0x00ffffff) -#define RTT_FREQUENCY (1024) /** @} */ /** @@ -117,3 +85,4 @@ static const i2c_conf_t i2c_config[] = { #endif #endif /* PERIPH_CONF_H */ +/** @} */