From 362e2c883d53d3502652b02a7ba25aec5742d69d Mon Sep 17 00:00:00 2001 From: Mike Thompson Date: Mon, 20 Feb 2023 17:21:54 -0500 Subject: [PATCH] Fix access-modes for INTACK and RDSTAT --- docs/doc-src/ip-blocks/apb_gpio.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/doc-src/ip-blocks/apb_gpio.rst b/docs/doc-src/ip-blocks/apb_gpio.rst index 837993c3..34b3195e 100644 --- a/docs/doc-src/ip-blocks/apb_gpio.rst +++ b/docs/doc-src/ip-blocks/apb_gpio.rst @@ -153,7 +153,7 @@ RDSTAT offset = 0x34 +------------+-------+------+------------+----------------------------------------------------------------------+ | Field | Bits | Type | Default | Description | +============+=======+======+============+======================================================================+ -| mode | 25:24 | RO | 0x0 | Read the mode control for GPIO[gpio_num] (set gpio_num using SETSEL) | +| DIR | 25:24 | RO | 0x0 | Read the mode control for GPIO[gpio_num] (set gpio_num using SETSEL) | +------------+-------+------+------------+----------------------------------------------------------------------+ | | 0x0: Input only (output is tri-stated) | +------------+-------+------+------------+----------------------------------------------------------------------+ @@ -177,7 +177,7 @@ RDSTAT offset = 0x34 +------------+-------+------+------------+----------------------------------------------------------------------+ | | 0x5 to 0x7: no interrupt | +------------+-------+------+------------+----------------------------------------------------------------------+ -| INTEN | 16:16 | RW | | Enable interrupt for GPIO[gpio_num] | +| INTEN | 16:16 | RO | | Interrupt enable staus for GPIO[gpio_num] | +------------+-------+------+------------+----------------------------------------------------------------------+ | INPUT | 12:12 | RO | | Input value reported by GPIO[gpio_num] | +------------+-------+------+------------+----------------------------------------------------------------------+ @@ -236,8 +236,8 @@ INTACK offset = 0x40 +------------+-------+------+------------+-------------------------------------------------------------+ | Field | Bits | Type | Default | Description | +============+=======+======+============+=============================================================+ -| RESERVED | 31:8 | RW | | Enable interrupt for GPIO[gpio_num] | +| RESERVED | 31:8 | WO | | | +------------+-------+------+------------+-------------------------------------------------------------+ -| gpio_num | 7:0 | RW | | Input value reported by GPIO[gpio_num] | +| gpio_num | 7:0 | WO | | Acknowledge the interrupt from GPIO[gpio_num] | +------------+-------+------+------------+-------------------------------------------------------------+