Project

General

Profile

Statistics
| Branch: | Revision:

pse-2015-16-grupo-3 / tpf / config.h @ 8e491bdf

History | View | Annotate | Download (880 Bytes)

1
#ifndef CONFIG_H
2
#define CONFIG_H
3

    
4
#include <stdint.h>
5

    
6

    
7
/**
8
 *  macro values used to define wich pins to connect in the raspberry gpio
9
 * 
10
 */
11
//INPUT
12
#define POWER_BTN 11
13
#define TIME_BTN 1
14
#define PLUS_BTN 2
15
#define MINUS_BTN 3
16
#define START_STOP 7
17
#define DOOR_SWITCH 4
18
#define ON_OF_SWITCH 6
19
#define TEMPERATURE_SWITCH 10
20

    
21
//output
22
#define INSIDE_LIGHT 0
23
#define WAVE_LED 5
24

    
25

    
26
//comment next line if using 7_SEGMENT display
27
#define LCD_NOT_SEG
28

    
29
#ifndef LCD_NOT_SEG
30

    
31
#define 7_SEG_DIS0 10
32
#define 7_SEG_DIS1 11
33
#define 7_SEG_DIS2 12
34
#define 7_SEG_DIS3 13
35
#define 7_SEG_S0 14
36
#define 7_SEG_S0 15
37
#define 7_SEG_S0 16
38
#define 7_SEG_S0 17
39
#define 7_SEG_S0 18
40
#define 7_SEG_S0 19
41
#define 7_SEG_S0 20
42

    
43

    
44
#endif
45

    
46
/**
47
 * 
48
 * defines the state(INPUT/OUTPUT) of the phisical pins in the raspberry gpio
49
 * @return 0 if success
50
 *         !0 if error
51
 * 
52
 */
53
uint8_t initBoard();
54

    
55

    
56

    
57

    
58
#endif