root / trunk / code / projects / diagnostic_station / station / hardware_ibom.h @ 1254
History | View | Annotate | Download (522 Bytes)
1 |
#ifndef _hardware_ibom_h
|
---|---|
2 |
#define _hardware_ibom_h
|
3 |
|
4 |
#include <dragonfly_lib.h> |
5 |
#include "global.h" |
6 |
|
7 |
/*
|
8 |
* Inverse BOM sensor macros for (N)orth,
|
9 |
* (S)outh, (E)ast, and (W)est positions.
|
10 |
*/
|
11 |
// FIXME do it right
|
12 |
#define RBOM_SENSOR_LEFT AN3
|
13 |
#define RBOM_SENSOR_RIGHT AN4
|
14 |
#define RBOM_SENSOR_TOP AN5
|
15 |
//#define RBOM_SENSOR_ AN6
|
16 |
|
17 |
void ibom_init (void); |
18 |
|
19 |
void ibom_set (bool on); |
20 |
void ibom_read (uint16_t *top, uint16_t *left, uint16_t *right);
|
21 |
void ibom_update (void); |
22 |
void ibom_debug (void); |
23 |
|
24 |
#endif
|