tests/cpu_efm32_features: update test

This commit is contained in:
Bas Stottelaar 2019-09-28 10:42:21 +02:00
parent b2769c0857
commit acd9dfda01
3 changed files with 8 additions and 2 deletions

View File

@ -11,5 +11,6 @@ BOARD_WHITELIST := ikea-tradfri \
# see cpu/efm32/efm32-features.mk for the supported flags # see cpu/efm32/efm32-features.mk for the supported flags
EFM32_UART_MODES = 1 EFM32_UART_MODES = 1
EFM32_LEUART_ENABLED = 0
include $(RIOTBASE)/Makefile.include include $(RIOTBASE)/Makefile.include

View File

@ -3,7 +3,8 @@
## Introduction ## Introduction
The EFM32 support several features that can be toggled compile-time. 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 ## Expected result
The test application compiles for EFM32-based boards. The test application compiles for EFM32-based boards.

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2018 Bas Stottelaar <basstottelaar@gmail.com> * Copyright (C) 2018-2019 Bas Stottelaar <basstottelaar@gmail.com>
* *
* This file is subject to the terms and conditions of the GNU Lesser * 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 * General Public License v2.1. See the file LICENSE in the top level
@ -20,6 +20,10 @@
#include "periph/uart.h" #include "periph/uart.h"
#if EFM32_LEUART_ENABLED
#error "Expected EFM32_LEUART_ENABLED feature to be disabled."
#endif
int main(void) int main(void)
{ {
/* test if uart_config[i].mode is set to a know value */ /* test if uart_config[i].mode is set to a know value */