Loading...
Searching...
No Matches
srf04_params.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 Freie Universität Berlin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
19#ifndef SRF04_PARAMS_H
20#define SRF04_PARAMS_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include "board.h"
27#include "srf04.h"
28
33#ifndef SRF04_PARAM_TRIGGER
34#define SRF04_PARAM_TRIGGER GPIO_PIN(0, 13)
35#endif
36#ifndef SRF04_PARAM_ECHO
37#define SRF04_PARAM_ECHO GPIO_PIN(0, 14)
38#endif
39
40#ifndef SRF04_PARAMS
41#define SRF04_PARAMS \
42 { .trigger = SRF04_PARAM_TRIGGER, \
43 .echo = SRF04_PARAM_ECHO, \
44 }
45#endif
51static const srf04_params_t srf04_params[] = {
52 SRF04_PARAMS
53};
54
58#define SRF04_NUMOF ARRAY_SIZE(srf04_params)
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif /* SRF04_PARAMS_H */
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:47