root / trunk / code / projects / diagnostic_station / station / hardware_ibom.h @ 1285
History | View | Annotate | Download (537 Bytes)
1 | 1254 | deffi | #ifndef _hardware_ibom_h
|
---|---|---|---|
2 | #define _hardware_ibom_h
|
||
3 | |||
4 | #include <dragonfly_lib.h> |
||
5 | #include "global.h" |
||
6 | |||
7 | /*
|
||
8 | 1280 | jsexton | * Inverse BOM sensor macros for left, right, and top positions.
|
9 | 1254 | deffi | */
|
10 | // FIXME do it right
|
||
11 | 1256 | deffi | #define IBOM_SENSOR_LEFT AN3
|
12 | #define IBOM_SENSOR_RIGHT AN4
|
||
13 | #define IBOM_SENSOR_TOP AN5
|
||
14 | //#define IBOM_SENSOR_ AN6
|
||
15 | 1254 | deffi | |
16 | 1280 | jsexton | #define IBOM_EMITTER_PIN PIN_A5
|
17 | |||
18 | 1254 | deffi | void ibom_init (void); |
19 | |||
20 | void ibom_set (bool on); |
||
21 | void ibom_read (uint16_t *top, uint16_t *left, uint16_t *right);
|
||
22 | void ibom_update (void); |
||
23 | void ibom_debug (void); |
||
24 | |||
25 | #endif |