Skip to content

Commit d288e94

Browse files
Corrected the definitions of the pull-up and pull-down configurations
in defs.h, per the github issue #15 on caravel (where the error was previously; the error has since migrated to caravel_mgmt_soc_litex).
1 parent b4750cf commit d288e94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

verilog/dv/firmware/defs.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,15 @@ extern uint32_t flashio_worker_end;
223223

224224
// Useful GPIO mode values
225225
#define GPIO_MODE_MGMT_STD_INPUT_NOPULL 0x0403
226-
#define GPIO_MODE_MGMT_STD_INPUT_PULLDOWN 0x0803
227-
#define GPIO_MODE_MGMT_STD_INPUT_PULLUP 0x0c03
226+
#define GPIO_MODE_MGMT_STD_INPUT_PULLDOWN 0x0801
227+
#define GPIO_MODE_MGMT_STD_INPUT_PULLUP 0x0c01
228228
#define GPIO_MODE_MGMT_STD_OUTPUT 0x1809
229229
#define GPIO_MODE_MGMT_STD_BIDIRECTIONAL 0x1801
230230
#define GPIO_MODE_MGMT_STD_ANALOG 0x000b
231231

232232
#define GPIO_MODE_USER_STD_INPUT_NOPULL 0x0402
233-
#define GPIO_MODE_USER_STD_INPUT_PULLDOWN 0x0802
234-
#define GPIO_MODE_USER_STD_INPUT_PULLUP 0x0c02
233+
#define GPIO_MODE_USER_STD_INPUT_PULLDOWN 0x0800
234+
#define GPIO_MODE_USER_STD_INPUT_PULLUP 0x0c00
235235
#define GPIO_MODE_USER_STD_OUTPUT 0x1808
236236
#define GPIO_MODE_USER_STD_BIDIRECTIONAL 0x1800
237237
#define GPIO_MODE_USER_STD_OUT_MONITORED 0x1802

0 commit comments

Comments
 (0)