16FXlib
buttons.cfg.h
Go to the documentation of this file.
1 
2 //*****************************************************************************
3 // Author : Christian Illy
4 // Created : 20.04.2009
5 // Revised : 04.06.2009
6 // Version : 0.1
7 // Target MCU : Fujitsu MB96300 series
8 //
9 // This program is free software: you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License as published by
11 // the Free Software Foundation, either version 3 of the License, or
12 // (at your option) any later version.
13 //
14 // This program is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU General Public License for more details.
18 //
19 // You should have received a copy of the GNU General Public License
20 // along with this program. If not, see <http://www.gnu.org/licenses/>.
21 //
27 //*****************************************************************************
29 #ifndef BUTTONS_CFG_H_
30 #define BUTTONS_CFG_H_
31 
32 #include "util.h"
33 
35 #define BUTTONS_PORT PDR07
36 #define BUTTONS_DDR DDR07
38 #define BUTTONS_PIER PIER07
40 
42 #define BUTTON_0 0
43 #define BUTTON_1 1
45 #define BUTTON_MASK (_BV(BUTTON_0) | _BV(BUTTON_1))
47 
48 #endif /* BUTTONS_CFG_H_ */
49