From 1a1a16eb7e443c08ca52b047bbc08a363db9696d Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Mon, 8 Mar 2021 17:34:30 +0100 Subject: [PATCH] cpu/nrf5x_common: drop bogus rtt_set_counter() rtt_set_counter() is implemented as noop for nRF5x. This drops this bogus implementation and the corresponding feature. --- cpu/nrf5x_common/Kconfig | 1 - cpu/nrf5x_common/Makefile.features | 1 - cpu/nrf5x_common/periph/rtt.c | 6 ------ 3 files changed, 8 deletions(-) diff --git a/cpu/nrf5x_common/Kconfig b/cpu/nrf5x_common/Kconfig index 10e1815be9..15322b17bf 100644 --- a/cpu/nrf5x_common/Kconfig +++ b/cpu/nrf5x_common/Kconfig @@ -13,7 +13,6 @@ config CPU_COMMON_NRF5X select HAS_PERIPH_GPIO select HAS_PERIPH_GPIO_IRQ select HAS_PERIPH_HWRNG - select HAS_PERIPH_RTT_SET_COUNTER select HAS_PERIPH_TEMPERATURE select HAS_PERIPH_TIMER_PERIODIC select HAS_PERIPH_UART_MODECFG diff --git a/cpu/nrf5x_common/Makefile.features b/cpu/nrf5x_common/Makefile.features index 270dfbc80a..30f8cf3aa7 100644 --- a/cpu/nrf5x_common/Makefile.features +++ b/cpu/nrf5x_common/Makefile.features @@ -4,7 +4,6 @@ FEATURES_PROVIDED += periph_flashpage FEATURES_PROVIDED += periph_flashpage_pagewise FEATURES_PROVIDED += periph_gpio periph_gpio_irq FEATURES_PROVIDED += periph_hwrng -FEATURES_PROVIDED += periph_rtt_set_counter FEATURES_PROVIDED += periph_temperature FEATURES_PROVIDED += periph_timer_periodic FEATURES_PROVIDED += periph_uart_modecfg diff --git a/cpu/nrf5x_common/periph/rtt.c b/cpu/nrf5x_common/periph/rtt.c index 36b113d91c..bc17f3fb95 100644 --- a/cpu/nrf5x_common/periph/rtt.c +++ b/cpu/nrf5x_common/periph/rtt.c @@ -79,12 +79,6 @@ uint32_t rtt_get_counter(void) return DEV->COUNTER; } -void rtt_set_counter(uint32_t counter) -{ - (void) counter; - /* not supported by the nRF5x */ -} - void rtt_set_alarm(uint32_t alarm, rtt_cb_t cb, void *arg) { alarm_cb = cb;