Skip to content

Commit

Permalink
Update user_defines.v
Browse files Browse the repository at this point in the history
Corrected values for GF180 GPIO.
  • Loading branch information
jeffdi authored Nov 26, 2022
1 parent fdfaa86 commit 17bbec3
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions verilog/rtl/user_defines.v
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,18 @@
// Authoritive source of these MODE defs is: caravel/verilog/rtl/user_defines.v
// Useful GPIO mode values. These match the names used in defs.h.
//
`define GPIO_MODE_MGMT_STD_INPUT_NOPULL 13'h0403
`define GPIO_MODE_MGMT_STD_INPUT_PULLDOWN 13'h0c01
`define GPIO_MODE_MGMT_STD_INPUT_PULLUP 13'h0801
`define GPIO_MODE_MGMT_STD_OUTPUT 13'h1809
`define GPIO_MODE_MGMT_STD_BIDIRECTIONAL 13'h1801
`define GPIO_MODE_MGMT_STD_ANALOG 13'h000b

`define GPIO_MODE_USER_STD_INPUT_NOPULL 13'h0402
`define GPIO_MODE_USER_STD_INPUT_PULLDOWN 13'h0c00
`define GPIO_MODE_USER_STD_INPUT_PULLUP 13'h0800
`define GPIO_MODE_USER_STD_OUTPUT 13'h1808
`define GPIO_MODE_USER_STD_BIDIRECTIONAL 13'h1800
`define GPIO_MODE_USER_STD_OUT_MONITORED 13'h1802
`define GPIO_MODE_USER_STD_ANALOG 13'h000a
`define GPIO_MODE_MGMT_STD_INPUT_NOPULL 10'h007
`define GPIO_MODE_MGMT_STD_INPUT_PULLDOWN 10'h047
`define GPIO_MODE_MGMT_STD_INPUT_PULLUP 10'h087
`define GPIO_MODE_MGMT_STD_OUTPUT 10'h00b
`define GPIO_MODE_MGMT_STD_BIDIRECTIONAL 10'h009

`define GPIO_MODE_USER_STD_INPUT_NOPULL 10'h006
`define GPIO_MODE_USER_STD_INPUT_PULLDOWN 10'h046
`define GPIO_MODE_USER_STD_INPUT_PULLUP 10'h086
`define GPIO_MODE_USER_STD_OUTPUT 10'h00a
`define GPIO_MODE_USER_STD_BIDIRECTIONAL 10'h008

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

0 comments on commit 17bbec3

Please sign in to comment.