Skip to content

Commit

Permalink
fix gpio_mode for doc generating
Browse files Browse the repository at this point in the history
  • Loading branch information
M0stafaRady authored Dec 31, 2023
1 parent 80d67f3 commit cdfbf07
Showing 1 changed file with 1 addition and 35 deletions.
36 changes: 1 addition & 35 deletions cocotb/caravel_cocotb/interfaces/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,41 +60,7 @@ def drive_hdl(path, bits, data):


class GPIO_MODE(Enum):
try:
GPIO_MODE_MGMT_STD_INPUT_NOPULL = int(
cocotb.plusargs["GPIO_MODE_MGMT_STD_INPUT_NOPULL"]
)
GPIO_MODE_MGMT_STD_INPUT_PULLDOWN = int(
cocotb.plusargs["GPIO_MODE_MGMT_STD_INPUT_PULLDOWN"]
)
GPIO_MODE_MGMT_STD_INPUT_PULLUP = int(
cocotb.plusargs["GPIO_MODE_MGMT_STD_INPUT_PULLUP"]
)
GPIO_MODE_MGMT_STD_OUTPUT = int(cocotb.plusargs["GPIO_MODE_MGMT_STD_OUTPUT"])
GPIO_MODE_MGMT_STD_BIDIRECTIONAL = int(
cocotb.plusargs["GPIO_MODE_MGMT_STD_BIDIRECTIONAL"]
)
GPIO_MODE_MGMT_STD_ANALOG = int(cocotb.plusargs["GPIO_MODE_MGMT_STD_ANALOG"])
GPIO_MODE_USER_STD_INPUT_NOPULL = int(
cocotb.plusargs["GPIO_MODE_USER_STD_INPUT_NOPULL"]
)
GPIO_MODE_USER_STD_INPUT_PULLDOWN = int(
cocotb.plusargs["GPIO_MODE_USER_STD_INPUT_PULLDOWN"]
)
GPIO_MODE_USER_STD_INPUT_PULLUP = int(
cocotb.plusargs["GPIO_MODE_USER_STD_INPUT_PULLUP"]
)
GPIO_MODE_USER_STD_OUTPUT = int(cocotb.plusargs["GPIO_MODE_USER_STD_OUTPUT"])
GPIO_MODE_USER_STD_BIDIRECTIONAL = int(
cocotb.plusargs["GPIO_MODE_USER_STD_BIDIRECTIONAL"]
)
GPIO_MODE_USER_STD_OUT_MONITORED = int(
cocotb.plusargs["GPIO_MODE_USER_STD_OUT_MONITORED"]
)
GPIO_MODE_USER_STD_ANALOG = int(cocotb.plusargs["GPIO_MODE_USER_STD_ANALOG"])
except Exception:
cocotb.log.warning("Some configuration isn't valid please review it's define at user_defines file")
pass
pass


class MASK_GPIO_CTRL(Enum):
Expand Down

0 comments on commit cdfbf07

Please sign in to comment.