From e2ea2a7d57b9a204c08488118aa054b56a1e43fe Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 22 May 2011 22:29:00 +0200 Subject: digital/avr/modules/devices/usdist: new US sensor module --- digital/io/src/avrconfig.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'digital/io/src/avrconfig.h') diff --git a/digital/io/src/avrconfig.h b/digital/io/src/avrconfig.h index dd3f2e87..a46b4abe 100644 --- a/digital/io/src/avrconfig.h +++ b/digital/io/src/avrconfig.h @@ -117,6 +117,18 @@ /** Heuristic callback. */ #define AC_ASTAR_HEURISTIC_CALLBACK path_astar_heuristic_callback +/* usdist - Analog US distance sensor. */ +/** Number of sensors. */ +#define AC_USDIST_NB 4 +/** Measuring period, in number of update call. */ +#define AC_USDIST_PERIOD 1 +/** List of space separated sensor definition, see usdist.h. */ +#define AC_USDIST_SENSORS \ + USDIST_SENSOR (0, G, 3) \ + USDIST_SENSOR (1, G, 1) \ + USDIST_SENSOR (2, C, 7) \ + USDIST_SENSOR (3, D, 4) + /* io - io/ai board. */ /** TWI address of the io board. */ #define AC_IO_TWI_ADDRESS 2 -- cgit v1.2.3