From ab85f607e900eab2df8c9e472ec55ca13d3b4527 Mon Sep 17 00:00:00 2001 From: "R. Timothy Edwards" Date: Thu, 7 Apr 2022 10:46:02 -0400 Subject: [PATCH] Corrected the definitions for the pullup and pulldown input modes (#51) in "defs.h" per the github issue #15 posted by Sylvain Munaut. --- verilog/dv/caravel/defs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/verilog/dv/caravel/defs.h b/verilog/dv/caravel/defs.h index b80c639b..3ed82a49 100644 --- a/verilog/dv/caravel/defs.h +++ b/verilog/dv/caravel/defs.h @@ -216,15 +216,15 @@ extern uint32_t flashio_worker_end; // Useful GPIO mode values #define GPIO_MODE_MGMT_STD_INPUT_NOPULL 0x0403 -#define GPIO_MODE_MGMT_STD_INPUT_PULLDOWN 0x0803 -#define GPIO_MODE_MGMT_STD_INPUT_PULLUP 0x0c03 +#define GPIO_MODE_MGMT_STD_INPUT_PULLDOWN 0x0801 +#define GPIO_MODE_MGMT_STD_INPUT_PULLUP 0x0c01 #define GPIO_MODE_MGMT_STD_OUTPUT 0x1809 #define GPIO_MODE_MGMT_STD_BIDIRECTIONAL 0x1801 #define GPIO_MODE_MGMT_STD_ANALOG 0x000b #define GPIO_MODE_USER_STD_INPUT_NOPULL 0x0402 -#define GPIO_MODE_USER_STD_INPUT_PULLDOWN 0x0802 -#define GPIO_MODE_USER_STD_INPUT_PULLUP 0x0c02 +#define GPIO_MODE_USER_STD_INPUT_PULLDOWN 0x0800 +#define GPIO_MODE_USER_STD_INPUT_PULLUP 0x0c00 #define GPIO_MODE_USER_STD_OUTPUT 0x1808 #define GPIO_MODE_USER_STD_BIDIRECTIONAL 0x1800 #define GPIO_MODE_USER_STD_OUT_MONITORED 0x1802