hw.h
Go to the documentation of this file.
1 /*
2  Copyright 2012-2014 Benjamin Vedder benjamin@vedder.se
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 /*
19  * hw.h
20  *
21  * Created on: 12 apr 2014
22  * Author: benjamin
23  */
24 
25 #ifndef HW_H_
26 #define HW_H_
27 
28 #include "conf_general.h"
29 
30 #ifdef HW_VERSION_40
31 #include "hw_40.h"
32 #elif defined HW_VERSION_45
33 #include "hw_45.h"
34 #elif defined HW_VERSION_46
35 #include "hw_46.h"
36 #elif defined HW_VERSION_R2
37 #include "hw_r2.h"
38 #elif defined HW_VERSION_BW
39 #include "hw_bw.h"
40 #elif defined HW_VERSION_VICTOR_R1A
41 #include "hw_victor_r1a.h"
42 #else
43 #error "No hardware version defined"
44 #endif
45 
46 // Functions
47 void hw_init_gpio(void);
48 void hw_setup_adc_channels(void);
49 void hw_setup_servo_outputs(void);
50 void hw_start_i2c(void);
51 void hw_stop_i2c(void);
52 void hw_try_restore_i2c(void);
53 
54 #endif /* HW_H_ */
void hw_setup_servo_outputs(void)
void hw_try_restore_i2c(void)
void hw_start_i2c(void)
void hw_init_gpio(void)
void hw_stop_i2c(void)
void hw_setup_adc_channels(void)