[riot-notifications] [RIOT-OS/RIOT] cpu/riscv: model Kconfig (#16909)

Francisco notifications at github.com
Tue Sep 28 22:20:54 CEST 2021


@fjmolinas commented on this pull request.



> +    select MODULE_PERIPH_PLIC if TEST_KCONFIG
+    select MODULE_PERIPH_CORETIMER if MODULE_PERIPH_TIMER && HAS_PERIPH_CORETIMER
+    select MODULE_PERIPH_RTT if MODULE_PERIPH_RTC && HAS_PERIPH_RTT

Seem like `ztimer_periph_rtc` is not the default backend in `Makefile.dep` you could either force it in the application through Kconfig or add the following

```

ifneq (,$(filter ztimer_sec,$(USEMODULE)))
  USEMODULE += ztimer
  # native rtc is based on xtimer, no sense in using it and its actually buggy
  ifeq (,$(filter native,$(BOARD)))
    FEATURES_OPTIONAL += periph_rtc
  endif
  include $(RIOTMAKE)/features_check.inc.mk
  ifneq (,$(filter periph_rtc,$(FEATURES_USED)))
    USEMODULE += ztimer_periph_rtc
  else
    FEATURES_OPTIONAL += periph_rtt
    include $(RIOTMAKE)/features_check.inc.mk
    ifneq (,$(filter periph_rtt,$(FEATURES_USED)))
      USEMODULE += ztimer_periph_rtt
    else
      USEMODULE += ztimer_periph_timer
    endif
  endif
endif
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16909#pullrequestreview-765920200
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210928/134c3b21/attachment.htm>


More information about the notifications mailing list