Skip to content

Commit 17bbec3

Browse files
authored
Update user_defines.v
Corrected values for GF180 GPIO.
1 parent fdfaa86 commit 17bbec3

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

verilog/rtl/user_defines.v

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,18 @@
2525
// Authoritive source of these MODE defs is: caravel/verilog/rtl/user_defines.v
2626
// Useful GPIO mode values. These match the names used in defs.h.
2727
//
28-
`define GPIO_MODE_MGMT_STD_INPUT_NOPULL 13'h0403
29-
`define GPIO_MODE_MGMT_STD_INPUT_PULLDOWN 13'h0c01
30-
`define GPIO_MODE_MGMT_STD_INPUT_PULLUP 13'h0801
31-
`define GPIO_MODE_MGMT_STD_OUTPUT 13'h1809
32-
`define GPIO_MODE_MGMT_STD_BIDIRECTIONAL 13'h1801
33-
`define GPIO_MODE_MGMT_STD_ANALOG 13'h000b
3428

35-
`define GPIO_MODE_USER_STD_INPUT_NOPULL 13'h0402
36-
`define GPIO_MODE_USER_STD_INPUT_PULLDOWN 13'h0c00
37-
`define GPIO_MODE_USER_STD_INPUT_PULLUP 13'h0800
38-
`define GPIO_MODE_USER_STD_OUTPUT 13'h1808
39-
`define GPIO_MODE_USER_STD_BIDIRECTIONAL 13'h1800
40-
`define GPIO_MODE_USER_STD_OUT_MONITORED 13'h1802
41-
`define GPIO_MODE_USER_STD_ANALOG 13'h000a
29+
`define GPIO_MODE_MGMT_STD_INPUT_NOPULL 10'h007
30+
`define GPIO_MODE_MGMT_STD_INPUT_PULLDOWN 10'h047
31+
`define GPIO_MODE_MGMT_STD_INPUT_PULLUP 10'h087
32+
`define GPIO_MODE_MGMT_STD_OUTPUT 10'h00b
33+
`define GPIO_MODE_MGMT_STD_BIDIRECTIONAL 10'h009
34+
35+
`define GPIO_MODE_USER_STD_INPUT_NOPULL 10'h006
36+
`define GPIO_MODE_USER_STD_INPUT_PULLDOWN 10'h046
37+
`define GPIO_MODE_USER_STD_INPUT_PULLUP 10'h086
38+
`define GPIO_MODE_USER_STD_OUTPUT 10'h00a
39+
`define GPIO_MODE_USER_STD_BIDIRECTIONAL 10'h008
4240

4341
// The power-on configuration for GPIO 0 to 4 is fixed and cannot be
4442
// modified (allowing the SPI and debug to always be accessible unless

0 commit comments

Comments
 (0)