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
9#pragma once
10
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include "board.h"
26#include "srf04.h"
27
32#ifndef SRF04_PARAM_TRIGGER
33#define SRF04_PARAM_TRIGGER GPIO_PIN(0, 13)
34#endif
35#ifndef SRF04_PARAM_ECHO
36#define SRF04_PARAM_ECHO GPIO_PIN(0, 14)
37#endif
38
39#ifndef SRF04_PARAMS
40#define SRF04_PARAMS \
41 { .trigger = SRF04_PARAM_TRIGGER, \
42 .echo = SRF04_PARAM_ECHO, \
43 }
44#endif
46
50static const srf04_params_t srf04_params[] = {
51 SRF04_PARAMS
52};
53
57#define SRF04_NUMOF ARRAY_SIZE(srf04_params)
58
59#ifdef __cplusplus
60}
61#endif
62
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