diff --git a/tests/cpu_efm32_features/Makefile b/tests/cpu_efm32_features/Makefile index 25f2c1a11e..224d17e7fd 100644 --- a/tests/cpu_efm32_features/Makefile +++ b/tests/cpu_efm32_features/Makefile @@ -11,5 +11,6 @@ BOARD_WHITELIST := ikea-tradfri \ # see cpu/efm32/efm32-features.mk for the supported flags EFM32_UART_MODES = 1 +EFM32_LEUART_ENABLED = 0 include $(RIOTBASE)/Makefile.include diff --git a/tests/cpu_efm32_features/README.md b/tests/cpu_efm32_features/README.md index e933ab115f..99b79eb802 100644 --- a/tests/cpu_efm32_features/README.md +++ b/tests/cpu_efm32_features/README.md @@ -3,7 +3,8 @@ ## Introduction The EFM32 support several features that can be toggled compile-time. -This test will ensure that RIOT-OS will compile whenever these features are toggled. +This test will ensure that RIOT-OS will compile whenever these features are +toggled. ## Expected result The test application compiles for EFM32-based boards. diff --git a/tests/cpu_efm32_features/main.c b/tests/cpu_efm32_features/main.c index 7c6c33e482..2851b1c4bc 100644 --- a/tests/cpu_efm32_features/main.c +++ b/tests/cpu_efm32_features/main.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018 Bas Stottelaar + * Copyright (C) 2018-2019 Bas Stottelaar * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level @@ -20,6 +20,10 @@ #include "periph/uart.h" +#if EFM32_LEUART_ENABLED +#error "Expected EFM32_LEUART_ENABLED feature to be disabled." +#endif + int main(void) { /* test if uart_config[i].mode is set to a know value */