From 3eeac9895d27f713d4d239f0afa96c10995c6a17 Mon Sep 17 00:00:00 2001 From: Firas Hamdi Date: Tue, 26 Mar 2024 12:51:29 +0100 Subject: [PATCH] makefiles: add CAN RX mailbox feature --- features.yaml | 2 ++ makefiles/features_existing.inc.mk | 1 + makefiles/features_modules.inc.mk | 3 +++ makefiles/pseudomodules.inc.mk | 1 + 4 files changed, 7 insertions(+) diff --git a/features.yaml b/features.yaml index 4b979f21c5..a5ca873132 100644 --- a/features.yaml +++ b/features.yaml @@ -651,6 +651,8 @@ groups: features: - name: periph_can help: A CAN peripheral is present. + - name: can_rx_mailbox + help: CAN controller RX mailbox is supported - name: periph_eth help: An Ethernet peripheral is present. diff --git a/makefiles/features_existing.inc.mk b/makefiles/features_existing.inc.mk index 5d4d7359cd..85c42d6850 100644 --- a/makefiles/features_existing.inc.mk +++ b/makefiles/features_existing.inc.mk @@ -43,6 +43,7 @@ FEATURES_EXISTING := \ ble_phy_2mbit \ ble_phy_coded \ bootloader_stm32 \ + can_rx_mailbox \ cortexm_fpu \ cortexm_mpu \ cortexm_svc \ diff --git a/makefiles/features_modules.inc.mk b/makefiles/features_modules.inc.mk index 8b02fa96b2..a0a6d64ac5 100644 --- a/makefiles/features_modules.inc.mk +++ b/makefiles/features_modules.inc.mk @@ -59,6 +59,9 @@ DEFAULT_MODULE += $(PERIPH_INIT_MODULES) # select cpu_check_address pseudomodule if the corresponding feature is used USEMODULE += $(filter cpu_check_address, $(FEATURES_USED)) +# select can_rx_mailbox pseudomodule if the corresponding feature is used +USEMODULE += $(filter can_rx_mailbox, $(FEATURES_USED)) + # select bootloader_stm32 module if the feature is used USEMODULE += $(filter bootloader_stm32, $(FEATURES_USED)) diff --git a/makefiles/pseudomodules.inc.mk b/makefiles/pseudomodules.inc.mk index 2a3c4be80e..13fc368bb4 100644 --- a/makefiles/pseudomodules.inc.mk +++ b/makefiles/pseudomodules.inc.mk @@ -38,6 +38,7 @@ PSEUDOMODULES += arduino_serial_stdio PSEUDOMODULES += can_mbox PSEUDOMODULES += can_pm PSEUDOMODULES += can_raw +PSEUDOMODULES += can_rx_mailbox PSEUDOMODULES += ccn-lite-utils PSEUDOMODULES += cc2538_rf_obs_sig PSEUDOMODULES += conn_can_isotp_multi