Project

General

Profile

Statistics
| Branch: | Revision:

root / scout_avr / src / range.h @ 4bdd00ba

History | View | Annotate | Download (404 Bytes)

1 1c3c96ce Tom Mullins
#ifndef _RANGE_H_
2
#define _RANGE_H_
3
4 230b1b7f Tom Mullins
#define RANGE_ERR 0xFFFF
5
6 cc9ca04e Tom Mullins
#define PIN_SONAR_PWM PIND
7
#define P_SONAR_PWM1 PD2
8
#define P_SONAR_PWM0 PD3
9
10
#define PORT_SONAR_TX PORTG
11
#define P_SONAR_TX PG1
12
13 fd73d758 Tom Mullins
// initializes timer 5, also used by bom
14 1c3c96ce Tom Mullins
void range_init();
15 fd73d758 Tom Mullins
16
// blocks during measurement (up to 37.5ms for each)
17
// writes values into array of 2 unsigned ints
18
void range_measure(unsigned int *values);
19 1c3c96ce Tom Mullins
20
#endif