Loading...
Searching...
No Matches
srf04_params.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include "board.h"
23#include "srf04.h"
24
29#ifndef SRF04_PARAM_TRIGGER
30#define SRF04_PARAM_TRIGGER GPIO_PIN(0, 13)
31#endif
32#ifndef SRF04_PARAM_ECHO
33#define SRF04_PARAM_ECHO GPIO_PIN(0, 14)
34#endif
35
36#ifndef SRF04_PARAMS
37#define SRF04_PARAMS \
38 { .trigger = SRF04_PARAM_TRIGGER, \
39 .echo = SRF04_PARAM_ECHO, \
40 }
41#endif
43
47static const srf04_params_t srf04_params[] = {
48 SRF04_PARAMS
49};
50
54#define SRF04_NUMOF ARRAY_SIZE(srf04_params)
55
56#ifdef __cplusplus
57}
58#endif
59
Device driver for the srf04 ultra sonic range finder.
static const srf04_params_t srf04_params[]
SRF04 configuration.
GPIO pins for srf04 device.
Definition srf04.h:46