mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
08db12be3b
The first UART is usually used for the shell, so don't default DOSE on it.
63 lines
1.2 KiB
C
63 lines
1.2 KiB
C
/*
|
|
* Copyright (C) 2019 Juergen Fitschen <me@jue.yt>
|
|
*
|
|
* 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 <me@jue.yt>
|
|
*/
|
|
|
|
#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_PARAMS
|
|
#define DOSE_PARAMS { .uart = DOSE_PARAM_UART, \
|
|
.baudrate = DOSE_PARAM_BAUDRATE, \
|
|
.sense_pin = DOSE_PARAM_SENSE_PIN }
|
|
#endif
|
|
/**@}*/
|
|
|
|
/**
|
|
* @brief DOSE configuration
|
|
*/
|
|
static const dose_params_t dose_params[] =
|
|
{
|
|
DOSE_PARAMS
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* DOSE_PARAMS_H */
|
|
/** @} */
|