Copy some software code from the original Milkymist SoC.
[litex.git] / software / include / hw / gpio.h
1 /*
2 * Milkymist SoC (Software)
3 * Copyright (C) 2007, 2008, 2009, 2010 Sebastien Bourdeauducq
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3 of the License.
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 #ifndef __HW_GPIO_H
19 #define __HW_GPIO_H
20
21 /* Inputs */
22 #define GPIO_BTN1 (0x00000001)
23 #define GPIO_BTN2 (0x00000002)
24 #define GPIO_BTN3 (0x00000004)
25
26 #define GPIO_PCBREV0 (0x00000008)
27 #define GPIO_PCBREV1 (0x00000010)
28 #define GPIO_PCBREV2 (0x00000020)
29 #define GPIO_PCBREV3 (0x00000040)
30
31 /* Outputs */
32 #define GPIO_LED1 (0x00000001)
33 #define GPIO_LED2 (0x00000002)
34
35 #endif /* __HW_GPIO_H */