1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-17 18:43:50 +01:00
RIOT/drivers/srf04/include/srf04_params.h
Marian Buschsieweke cac44edec7
tree-wide: replace multiple empty lines with one
For each C source/header `$file`: `sed -e '/^$/N;/^\n$/D' -i $file`.
2025-05-21 22:51:04 +02:00

64 lines
1.1 KiB
C

/*
* Copyright (C) 2018 Freie Universität Berlin
*
* 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.
*/
#pragma once
/**
* @ingroup drivers_srf04
*
* @{
* @file
* @brief Default configuration for srf04 devices
*
* @author Semjon Kerner <semjon.kerner@fu-berlin.de>
*/
#ifdef __cplusplus
extern "C" {
#endif
#include "board.h"
#include "srf04.h"
/**
* @name Default configuration parameters for SRF04 device
* @{
*/
#ifndef SRF04_PARAM_TRIGGER
#define SRF04_PARAM_TRIGGER GPIO_PIN(0, 13)
#endif
#ifndef SRF04_PARAM_ECHO
#define SRF04_PARAM_ECHO GPIO_PIN(0, 14)
#endif
#ifndef SRF04_PARAMS
#define SRF04_PARAMS \
{ .trigger = SRF04_PARAM_TRIGGER, \
.echo = SRF04_PARAM_ECHO, \
}
#endif
/** @} */
/**
* @brief SRF04 configuration
*/
static const srf04_params_t srf04_params[] = {
SRF04_PARAMS
};
/**
* @brief Number of SRF04 devices
*/
#define SRF04_NUMOF ARRAY_SIZE(srf04_params)
#ifdef __cplusplus
}
#endif
/** @} */