Skip to content

Commit

Permalink
docs(TRM): fix typo and mismatched info in GPIO.rst
Browse files Browse the repository at this point in the history
Fix typo 'interna' to 'internal' in Bus Interface description
Fix mismatched port name 'gpio_swporta_xxx' to 'gpio_swportb_xxx' in 13.1.2 Register Memory Map description
Fix mismatched gpio_ext_porta description 'clear' to 'external' in 13.1.2 Register Memory Map description

The commit corrects minor spelling error and mismatched info in the GPIO documentation, improving readability.
  • Loading branch information
McKnight22 authored and SophgoChaoWei committed Dec 17, 2024
1 parent c8f58fa commit 950df41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SG2042/TRM/source/GPIO.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This section describes the programmable registers of the DW_apb_gpio.
Bus Interface
^^^^^^^^^^^^^

The DW_apb_gpio peripheral has a standard AMBA 2.0 APB interface for reading and writing the interna registers. This peripheral supports APB data bus widths of 8, 16, or 32 bits, which is set with the
The DW_apb_gpio peripheral has a standard AMBA 2.0 APB interface for reading and writing the internal registers. This peripheral supports APB data bus widths of 8, 16, or 32 bits, which is set with the
APB_DATA_WIDTH parameter.

Figure 1 shows the read/write busses between the DW_apb and the APB slave.
Expand Down Expand Up @@ -58,13 +58,13 @@ Table 1 shows the memory map for the DW_apb_gpio peripheral.
| | | | + +
| | | | | GPIO_PORTA_SINGLE_CTL = 0 |
+-----------------+--------+------------+----+--------------------------------------------+
| gpio_swporta_dr | 0x0c | See | R/W| Port B data register |
| gpio_swportb_dr | 0x0c | See | R/W| Port B data register |
| | | | + +
| | | Description| | Width: GPIO_PWIDTH_B |
| | | | + +
| | | | | Reset Value: GPIO_SWPORTB_RESET |
+-----------------+--------+------------+----+--------------------------------------------+
| gpio_swporta_ddr| 0x10 | See | R/W| Port B data direction register |
| gpio_swportb_ddr| 0x10 | See | R/W| Port B data direction register |
| | | | + +
| | | Description| | Width: GPIO_PWIDTH_B |
| | | | + +
Expand Down Expand Up @@ -186,7 +186,7 @@ Table 1 shows the memory map for the DW_apb_gpio peripheral.
| | | | + +
| | | | | Reset Value: 0x0 |
+-----------------+--------+------------+----+--------------------------------------------+
| gpio_ext_porta | 0x50 | See | R | Port A clear interrupt register |
| gpio_ext_porta | 0x50 | See | R | Port A external interrupt register |
| | | | + +
| | | Description| | Width: GPIO_PWIDTH_A |
| | | | + +
Expand Down

0 comments on commit 950df41

Please sign in to comment.