demo: update GPIO definitions

parent 3eb48e31
/* /*
* Milkymist SoC (Software) * Milkymist SoC (Software)
* Copyright (C) 2007, 2008, 2009 Sebastien Bourdeauducq * Copyright (C) 2007, 2008, 2009 Sebastien Bourdeauducq
* Copyright (C) 2011 CERN
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
...@@ -19,40 +20,12 @@ ...@@ -19,40 +20,12 @@
#define __HW_GPIO_H #define __HW_GPIO_H
/* Inputs */ /* Inputs */
#define GPIO_PBN (0x00000001) #define GPIO_PB2 (0x00000001)
#define GPIO_PBW (0x00000002)
#define GPIO_PBS (0x00000004)
#define GPIO_PBE (0x00000008)
#define GPIO_PBC (0x00000010)
#define GPIO_DIP1 (0x00000020)
#define GPIO_DIP2 (0x00000040)
#define GPIO_DIP3 (0x00000080)
#define GPIO_DIP4 (0x00000100)
#define GPIO_DIP5 (0x00000200)
#define GPIO_DIP6 (0x00000400)
#define GPIO_DIP7 (0x00000800)
#define GPIO_DIP8 (0x00001000)
/* Outputs */ /* Outputs */
#define GPIO_LED2 (0x00000001) #define GPIO_LD2 (0x00000001)
#define GPIO_LED3 (0x00000002) #define GPIO_LD3 (0x00000002)
#define GPIO_LD4 (0x00000004)
#define GPIO_LEDN (0x00000004) #define GPIO_LD5 (0x00000008)
#define GPIO_LEDW (0x00000008)
#define GPIO_LEDS (0x00000010)
#define GPIO_LEDE (0x00000020)
#define GPIO_LEDC (0x00000040)
#define GPIO_HDLCDE (0x00000080)
#define GPIO_HDLCDRS (0x00000100)
#define GPIO_HDLCDRW (0x00000200)
#define GPIO_HDLCDD_SHIFT (10)
#define GPIO_HDLCDD4 (0x00000400)
#define GPIO_HDLCDD5 (0x00000800)
#define GPIO_HDLCDD6 (0x00001000)
#define GPIO_HDLCDD7 (0x00002000)
#endif /* __HW_GPIO_H */ #endif /* __HW_GPIO_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment