Project

General

Profile

Statistics
| Branch: | Revision:

pse-2015-16-grupo-3 / tpf / config.h @ 78c254a7

History | View | Annotate | Download (460 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
#define POWER_BTN 0
12
#define TIME_BTN 1
13
#define PLUS_BTN 2
14
#define MINUS_BTN 3
15
#define DOOR_SWITCH 4
16
#define WAVE_LED 5
17
#define ON_OF_SWITCH 6
18

    
19

    
20
/**
21
 * 
22
 * defines the state(INPUT/OUTPUT) of the phisical pins in the raspberry gpio
23
 * @return 0 if success
24
 *         !0 if error
25
 * 
26
 */
27
uint8_t initBoard();
28

    
29

    
30

    
31

    
32
#endif