Subversion Repositories Projects

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1199 - 1
/****************************************************************************
2
 *   Copyright (C) 2011 by Claas Anders "CaScAdE" Rathje                    *
3
 *   admiralcascade@gmail.com                                               *
4
 *   Project-URL: http://www.mylifesucks.de/oss/c-epilepsy/                 *
5
 *                                                                          *
6
 *   This program is free software; you can redistribute it and/or modify   *
7
 *   it under the terms of the GNU General Public License as published by   *
8
 *   the Free Software Foundation; either version 2 of the License.         *
9
 *                                                                          *
10
 *   This program is distributed in the hope that it will be useful,        *
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of         *
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
13
 *   GNU General Public License for more details.                           *
14
 *                                                                          *
15
 *   You should have received a copy of the GNU General Public License      *
16
 *   along with this program; if not, write to the                          *
17
 *   Free Software Foundation, Inc.,                                        *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.              *
19
 ****************************************************************************/
20
 
21
#include "main.h"
22
 
23
#ifndef _BUTTONS_H
24
#define _BUTTONS_H
25
 
26
#define MODE                    PD5
27
#define SET                     PD4
28
 
29
//#define MODE_PRESSED  !(PIND & (1<<MODE))
30
//#define SET_PRESSED           !(PIND & (1<<PD4))
31
 
32
#define BUTTON_MASKED_TIME 25
33
 
34
extern volatile uint8_t BUTTONS;
35
 
36
uint8_t mode_pressed(void);
37
uint8_t set_pressed(void);
38
 
39
void buttons_init(void);
40
 
41
#endif