/* * Copyright (C) 2019 Juergen Fitschen * * 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 * directory for more details. * */ /** * @ingroup drivers_dose * @{ * @file * @brief Default configuration for the Differentially Operated Serial Ethernet driver * * @author Juergen Fitschen */ #ifndef DOSE_PARAMS_H #define DOSE_PARAMS_H #include "board.h" #ifdef __cplusplus extern "C" { #endif /** * @name Set default configuration parameters for the DOSE driver * @{ */ #ifndef DOSE_PARAM_UART #define DOSE_PARAM_UART (UART_DEV(1)) #endif #ifndef DOSE_PARAM_BAUDRATE #define DOSE_PARAM_BAUDRATE (115200) #endif #ifndef DOSE_PARAM_SENSE_PIN #define DOSE_PARAM_SENSE_PIN (GPIO_UNDEF) #endif #ifndef DOSE_PARAM_STANDBY_PIN #define DOSE_PARAM_STANDBY_PIN (GPIO_UNDEF) /**< Standby/Silent mode */ #endif #ifndef DOSE_PARAMS #ifdef MODULE_PERIPH_UART_RXSTART_IRQ #define DOSE_PARAMS { \ .uart = DOSE_PARAM_UART, \ .baudrate = DOSE_PARAM_BAUDRATE, \ .standby_pin = DOSE_PARAM_STANDBY_PIN, \ } #else /* MODULE_PERIPH_UART_RXSTART_IRQ */ #define DOSE_PARAMS { \ .uart = DOSE_PARAM_UART, \ .baudrate = DOSE_PARAM_BAUDRATE, \ .standby_pin = DOSE_PARAM_STANDBY_PIN, \ .sense_pin = DOSE_PARAM_SENSE_PIN, \ } #endif /* !MODULE_PERIPH_UART_RXSTART_IRQ */ #endif /**@}*/ /** * @brief DOSE configuration */ static const dose_params_t dose_params[] = { DOSE_PARAMS }; #ifdef __cplusplus } #endif #endif /* DOSE_PARAMS_H */ /** @} */