From a4de4153fc84869fb4e7e857a34b96c64374609d Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Tue, 21 May 2019 08:40:15 +0200 Subject: [PATCH] boards/lsn50: use common rtt configuration --- boards/lsn50/Makefile.include | 3 +++ boards/lsn50/include/periph_conf.h | 12 +----------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/boards/lsn50/Makefile.include b/boards/lsn50/Makefile.include index 0b4a8e989a..2b0a64dcea 100644 --- a/boards/lsn50/Makefile.include +++ b/boards/lsn50/Makefile.include @@ -2,6 +2,9 @@ export CPU = stm32l0 export CPU_MODEL = stm32l072cz +# we use shared STM32 configuration snippets +INCLUDES += -I$(RIOTBOARD)/common/stm32/include + # define the default port depending on the host OS PORT_LINUX ?= /dev/ttyACM0 PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*))) diff --git a/boards/lsn50/include/periph_conf.h b/boards/lsn50/include/periph_conf.h index 9c1d328086..3ff21a7942 100644 --- a/boards/lsn50/include/periph_conf.h +++ b/boards/lsn50/include/periph_conf.h @@ -20,6 +20,7 @@ #define PERIPH_CONF_H #include "periph_cpu.h" +#include "cfg_rtt_default.h" #ifdef __cplusplus extern "C" { @@ -205,17 +206,6 @@ static const i2c_conf_t i2c_config[] = { #define I2C_NUMOF (sizeof(i2c_config) / sizeof(i2c_config[0])) /** @} */ -/** - * @name RTT configuration - * - * On the STM32Lx platforms, we always utilize the LPTIM1. - * @{ - */ -#define RTT_NUMOF (1) -#define RTT_FREQUENCY (1024U) /* 32768 / 2^n */ -#define RTT_MAX_VALUE (0x0000ffff) /* 16-bit timer */ -/** @} */ - /** * @name RTC configuration * @{