summaryrefslogtreecommitdiff
path: root/n/es/src/tourelle.h
blob: 402d19fb50e9b6d067cd16b2ddff14c76b087169 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* tourelle.h */
/* Detector on a ATmega128. {{{
 *
 * Copyright (C) 2005 Dalmais Romain
 *
 * Robot APB Team/Efrei 2005
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 * 
 * }}} */
 
#ifndef tourelle_h
#define tourelle_h
/* inclusion */

#include "n/avr/rs232/rs232.h"
#include "n/avr/utils/utils.h"
#include "n/avr/twi-slave/twi_slave.h"
#include "n/avr/adc/adc.h"

/* proto */

void tourelle_init (uint16_t prescaler);
void crenaux(uint8_t temps, uint8_t port, uint8_t pin);
void rs232_callback (uint8_t cmd, uint8_t size, uint8_t *args);
void TournerTourelle(void);
int16_t mesurer(void);
void Timer_tourelle(void);

#endif