Changeset 8328
- Timestamp:
- 05/08/08 17:09:28
- Files:
-
- usrp2/trunk/firmware/lib/memory_map.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
usrp2/trunk/firmware/lib/memory_map.h
r8249 r8328 150 150 typedef struct { 151 151 volatile uint32_t io; // tx data in high 16, rx in low 16 152 volatile uint32_t rx_mode; // 16 2-bit fields 153 volatile uint32_t tx_mode; // 16 2-bit fields 152 volatile uint32_t tx_sel; // 16 2-bit fields select which source goes to TX DB 153 volatile uint32_t rx_sel; // 16 2-bit fields select which source goes to RX DB 154 volatile uint32_t ddr; // 32 bits, 1 means output 154 155 } gpio_regs_t; 155 156 156 157 // each 2-bit mode field is layed out this way 157 #define GPIOM_ INPUT 0 // pin is an input, readable by proc throughio reg158 #define GPIOM_ OUTPUT 1 // pin is an output, writable by proc through io reg159 #define GPIOM_ FPGA_0 2 // pin is an output, writablefrom FPGA fabric160 #define GPIOM_ FPGA_1 3 // pin is an output, writablefrom FPGA fabric158 #define GPIOM_SW 0 // if pin is an output, set by software in the io reg 159 #define GPIOM_ATR 1 // if pin is an output, set by ATR logic 160 #define GPIOM_DEBUG_0 2 // if pin is an output, debug lines from FPGA fabric 161 #define GPIOM_DEBUG_1 3 // if pin is an output, debug lines from FPGA fabric 161 162 162 163 #define gpio_base ((gpio_regs_t *) GPIO_BASE)
