Line 10:
Line 10:
}}
}}
−
The Latte chipset includes two groups of general purpose I/O lines with interrupt capability: one common to Wood and Latte hardware (ALL) and another exclusively available to Latte (LT). Four sets of registers are provided (two for each group), and the Espresso only has access to two sets. These sets access a configurable subset of the IO pins, which the Starbuck can select.
+
The Latte chipset includes two groups of general purpose I/O lines with interrupt capability: one common to Wood and Latte hardware (ALL) and another exclusively available to Latte (LATTE). Four sets of registers are provided (two for each group), and the Espresso only has access to two sets. These sets access a configurable subset of the IO pins, which the Starbuck can select.
−
== Pin connections ==
+
== Pins ==
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 18:
Line 18:
! Group
! Group
! Direction
! Direction
−
! Connection
! Description
! Description
|-
|-
−
| 0 || ALL || IN || RTCSysInt || Power button input.
+
| 0 || ALL || IN || RTCSysInt (power button input)
|-
|-
−
| 0 || ALL || OUT || ToucanSelect || [[Hardware/Toucan|Toucan]] select (devkit only).
+
| 0 || ALL || OUT || ToucanSelect ([[Hardware/Toucan|Toucan]] select, devkit only)
|-
|-
−
| 0 || LT || OUT || FanSpeed || Fan speed.
+
| 0 || LATTE || OUT || FanSpeed
|-
|-
−
| 1 || ALL || OUT || DWiFiMode || DWiFi mode.
+
| 1 || ALL || OUT || DWiFiMode
|-
|-
−
| 1 || LT || IN || SMCI2CClock || SMC I²C Clock.
+
| 1 || LATTE || IN || SMCI2CClock
|-
|-
−
| 2 || ALL || OUT || FanPower || Fan power, active high.
+
| 2 || ALL || OUT || FanPower
|-
|-
−
| 2 || LT || IN || SMCI2CData || SMC I²C Data.
+
| 2 || LATTE || IN || SMCI2CData
|-
|-
−
| 3 || ALL || OUT || DCDCPwrCnt || DC/DC converter power, active high.
+
| 3 || ALL || OUT || DCDCPwrCnt (DC/DC converter power, active high)
|-
|-
−
| 3 || ALL || OUT || CCRIO3 || Unknown (devkit only).
+
| 3 || ALL || OUT || CCRIO3 (DRH reset related, Cortado only, equiv to CCRHReset?)
|-
|-
−
| 3 || LT || OUT || DCDCPwrCnt2 || DC/DC converter power, active high.
+
| 3 || LATTE || OUT || DCDCPwrCnt2 (DC/DC converter power, active high)
|-
|-
−
| 4 || ALL || OUT || DISpinUp || DI spin up (devkit only).
+
| 4 || ALL || OUT || DISpinUp (devkit only)
|-
|-
−
| 4 || LT || IN || AVInterrupt || A/V encoder interrupt (from Espresso).
+
| 4 || LATTE || IN || AVInterrupt (A/V encoder interrupt from Espresso)
|-
|-
−
| 5 || ALL || OUT || ESP10WorkAround || Unknown.
+
| 5 || ALL || OUT || ESP10WorkAround
|-
|-
−
| 5 || ALL || OUT || SlotLED || Slot LED (devkit only).
+
| 5 || ALL || OUT || SlotLED (devkit only)
|-
|-
−
| 5 || LT || OUT || CCRHFWCtrl || CCRH firmware control (devkit only).
+
| 5 || LATTE || OUT || CCRHFWCtrl (devkit only)
|-
|-
−
| 6 || ALL || UNK || UNKNOWN || Unknown.
+
| 6 || ALL || UNK || Unknown
|-
|-
−
| 6 || LT || OUT || AVReset || A/V encoder reset (from Espresso).
+
| 6 || LATTE || OUT || AVReset (A/V encoder reset from Espresso)
|-
|-
−
| 7 || ALL || UNK || UNKNOWN || Unknown.
+
| 7 || ALL || UNK || Unknown
|-
|-
−
| 8 || ALL || OUT || PADPD || GamePad power state.
+
| 8 || ALL || OUT || PADPD (GamePad power state)
|-
|-
−
| 9 || ALL || UNK || UNKNOWN || Unknown.
+
| 9 || ALL || I/O || NDEV_LED (devkit only)
|-
|-
−
| 10 || ALL || OUT || EEPROM_CS || SEEPROM Chip Select.
+
| 10 || ALL || OUT || EEPROM_CS (SEEPROM chip select)
|-
|-
−
| 11 || ALL || OUT || EEPROM_SK || SEEPROM Clock.
+
| 11 || ALL || OUT || EEPROM_SK (SEEPROM clock)
|-
|-
−
| 12 || ALL || OUT || EEPROM_DO || Data to SEEPROM.
+
| 12 || ALL || OUT || EEPROM_DO (data to SEEPROM)
|-
|-
−
| 13 || ALL || IN || EEPROM_DI || Data from SEEPROM.
+
| 13 || ALL || IN || EEPROM_DI (data from SEEPROM)
|-
|-
−
| 14 || ALL || OUT || AV0I2CClock || A/V Encoder (#0) I²C Clock.
+
| 14 || ALL || OUT || AV0I2CClock (A/V Encoder #0 I²C Clock)
|-
|-
−
| 15 || ALL || OUT || AV0I2CData || A/V Encoder (#0) I²C Data.
+
| 15 || ALL || OUT || AV0I2CData (A/V Encoder #0 I²C Data)
|-
|-
−
| 16 || ALL || OUT || NDEV_LED || Development unit's LED (devkit only).
+
| 16 || ALL || I/O || NDEV_LED (devkit only, debug testpoint TP50)
|-
|-
−
| 16 || ALL || OUT || DEBUG0 || Debug Testpoint (TP50).
+
| 17 || ALL || I/O || NDEV_LED (devkit only, debug testpoint TP51)
|-
|-
−
| 17 || ALL || OUT || DEBUG1 || Debug Testpoint (TP51).
+
| 18 || ALL || I/O || NDEV_LED (devkit only, debug testpoint TP52)
|-
|-
−
| 18 || ALL || OUT || DEBUG2 || Debug Testpoint (TP52).
+
| 19 || ALL || I/O || NDEV_LED (devkit only, debug testpoint TP53)
|-
|-
−
| 19 || ALL || OUT || DEBUG3 || Debug Testpoint (TP53).
+
| 20 || ALL || I/O || NDEV_LED (devkit only, debug testpoint TP55)
|-
|-
−
| 20 || ALL || OUT || DEBUG4 || Debug Testpoint (TP55).
+
| 21 || ALL || I/O || NDEV_LED (devkit only, debug testpoint TP54)
|-
|-
−
| 21 || ALL || OUT || DEBUG5 || Debug Testpoint (TP54).
+
| 22 || ALL || I/O || NDEV_LED (devkit only, debug testpoint TP48)
|-
|-
−
| 22 || ALL || OUT || DEBUG6 || Debug Testpoint (TP48).
+
| 23 || ALL || I/O || NDEV_LED (devkit only, debug testpoint TP49)
|-
|-
−
| 23 || ALL || OUT || DEBUG7 || Debug Testpoint (TP49).
+
| 24 || ALL || OUT || AV1I2CClock (A/V Encoder #1 I²C Clock)
|-
|-
−
| 24 || ALL || OUT || AV1I2CClock || A/V Encoder (#1) I²C Clock.
+
| 25 || ALL || OUT || AV1I2CData (A/V Encoder #1 I²C Data)
|-
|-
−
| 25 || ALL || OUT || AV1I2CData || A/V Encoder (#1) I²C Data.
+
| 26 || ALL || OUT || MuteLamp
|-
|-
−
| 26 || ALL || OUT || MuteLamp || Unknown.
+
| 27 || ALL || OUT || BlueToothMode
|-
|-
−
| 27 || ALL || OUT || BlueToothMode || BlueTooth mode.
+
| 28 || ALL || OUT || CCRHReset
|-
|-
−
| 28 || ALL || OUT || CCRHReset || CCRH reset.
+
| 29 || ALL || OUT || WiFiMode
|-
|-
−
| 29 || ALL || OUT || WiFiMode || WiFi mode.
+
| 30 || ALL || OUT || SDC0S0Power (SD card power, driven low before boot0 attempts to read a signed boot1 image from the SD card)
|-
|-
−
| 30 || ALL || OUT || SDC0S0Power || SD card (slot 0) power. Driven low before boot0 attempts to read a signed boot1 image from the SD card.
+
| 31 || ALL || I/O || NDEV_LED (devkit only)
|}
|}
== Register list ==
== Register list ==
{{reglist|Wood and Latte GPIOs (ALL)}}
{{reglist|Wood and Latte GPIOs (ALL)}}
−
{{rla|0x0d8000c0|32|HW_GPIOB_OUT|GPIO Outputs (Espresso access)}}
+
{{rla|0x0d8000c0|32|HW_GPIOPPCOUT|GPIO Outputs (Espresso access)}}
−
{{rla|0x0d8000c4|32|HW_GPIOB_DIR|GPIO Direction (Espresso access)}}
+
{{rla|0x0d8000c4|32|HW_GPIOPPCDIR|GPIO Direction (Espresso access)}}
−
{{rla|0x0d8000c8|32|HW_GPIOB_IN|GPIO Inputs (Espresso access)}}
+
{{rla|0x0d8000c8|32|HW_GPIOPPCIN|GPIO Inputs (Espresso access)}}
−
{{rla|0x0d8000cc|32|HW_GPIOB_INTLVL|GPIO Interrupt Levels (Espresso access)}}
+
{{rla|0x0d8000cc|32|HW_GPIOPPCINTLVL|GPIO Interrupt Levels (Espresso access)}}
−
{{rla|0x0d8000d0|32|HW_GPIOB_INTFLAG|GPIO Interrupt Flags (Espresso access)}}
+
{{rla|0x0d8000d0|32|HW_GPIOPPCINTSTS|GPIO Interrupt Flags (Espresso access)}}
−
{{rla|0x0d8000d4|32|HW_GPIOB_INTMASK|GPIO Interrupt Masks (Espresso access)}}
+
{{rla|0x0d8000d4|32|HW_GPIOPPCINTEN|GPIO Interrupt Masks (Espresso access)}}
−
{{rla|0x0d8000d8|32|HW_GPIOB_STRAPS|GPIO Straps (Espresso access)}}
+
{{rla|0x0d8000d8|32|HW_GPIOPPCSTRAPS|GPIO Straps (Espresso access)}}
−
{{rla|0x0d8000dc|32|HW_GPIO_ENABLE|GPIO Enable (Starbuck only)}}
+
{{rla|0x0d8000dc|32|HW_GPIOIOPEN|GPIO Enable (Starbuck access)}}
−
{{rla|0x0d8000e0|32|HW_GPIO_OUT|GPIO Outputs (Starbuck only)}}
+
{{rla|0x0d8000e0|32|HW_GPIOIOPOUT|GPIO Outputs (Starbuck access)}}
−
{{rla|0x0d8000e4|32|HW_GPIO_DIR|GPIO Direction (Starbuck only)}}
+
{{rla|0x0d8000e4|32|HW_GPIOIOPDIR|GPIO Direction (Starbuck access)}}
−
{{rla|0x0d8000e8|32|HW_GPIO_IN|GPIO Inputs (Starbuck only)}}
+
{{rla|0x0d8000e8|32|HW_GPIOIOPIN|GPIO Inputs (Starbuck access)}}
−
{{rla|0x0d8000ec|32|HW_GPIO_INTLVL|GPIO Interrupt Levels (Starbuck only)}}
+
{{rla|0x0d8000ec|32|HW_GPIOIOPINTLVL|GPIO Interrupt Levels (Starbuck access)}}
−
{{rla|0x0d8000f0|32|HW_GPIO_INTFLAG|GPIO Interrupt Flags (Starbuck only)}}
+
{{rla|0x0d8000f0|32|HW_GPIOIOPINTSTS|GPIO Interrupt Flags (Starbuck access)}}
−
{{rla|0x0d8000f4|32|HW_GPIO_INTMASK|GPIO Interrupt Masks (Starbuck only)}}
+
{{rla|0x0d8000f4|32|HW_GPIOIOPINTEN|GPIO Interrupt Masks (Starbuck access)}}
−
{{rla|0x0d8000f8|32|HW_GPIO_STRAPS|GPIO Straps (Starbuck only)}}
+
{{rla|0x0d8000f8|32|HW_GPIOIOPSTRAPS|GPIO Straps (Starbuck access)}}
−
{{rla|0x0d8000fc|32|HW_GPIO_OWNER|GPIO Owner Select (Starbuck only)}}
+
{{rla|0x0d8000fc|32|HW_GPIOIOPPPCOWNER|GPIO Owner Select (Starbuck access)}}
|}
|}
−
{{reglist|Latte GPIOs (LT)}}
+
{{reglist|Latte GPIOs (LATTE)}}
−
{{rla|0x0d800520|32|LT_GPIOB_OUT|GPIO Outputs (Espresso access)}}
+
{{rla|0x0d800520|32|LT_GPIOPPCOUT|GPIO Outputs (Espresso access)}}
−
{{rla|0x0d800524|32|LT_GPIOB_DIR|GPIO Direction (Espresso access)}}
+
{{rla|0x0d800524|32|LT_GPIOPPCDIR|GPIO Direction (Espresso access)}}
−
{{rla|0x0d800528|32|LT_GPIOB_IN|GPIO Inputs (Espresso access)}}
+
{{rla|0x0d800528|32|LT_GPIOPPCIN|GPIO Inputs (Espresso access)}}
−
{{rla|0x0d80052c|32|LT_GPIOB_INTLVL|GPIO Interrupt Levels (Espresso access)}}
+
{{rla|0x0d80052c|32|LT_GPIOPPCINTLVL|GPIO Interrupt Levels (Espresso access)}}
−
{{rla|0x0d800530|32|LT_GPIOB_INTFLAG|GPIO Interrupt Flags (Espresso access)}}
+
{{rla|0x0d800530|32|LT_GPIOPPCINTSTS|GPIO Interrupt Flags (Espresso access)}}
−
{{rla|0x0d800534|32|LT_GPIOB_INTMASK|GPIO Interrupt Masks (Espresso access)}}
+
{{rla|0x0d800534|32|LT_GPIOPPCINTEN|GPIO Interrupt Masks (Espresso access)}}
−
{{rla|0x0d800538|32|LT_GPIOB_STRAPS|GPIO Straps (Espresso access)}}
+
{{rla|0x0d800538|32|LT_GPIOPPCSTRAPS|GPIO Straps (Espresso access)}}
−
{{rla|0x0d80053c|32|LT_GPIO_ENABLE|GPIO Enable (Starbuck only)}}
+
{{rla|0x0d80053c|32|LT_GPIOIOPEN|GPIO Enable (Starbuck access)}}
−
{{rla|0x0d800540|32|LT_GPIO_OUT|GPIO Outputs (Starbuck only)}}
+
{{rla|0x0d800540|32|LT_GPIOIOPOUT|GPIO Outputs (Starbuck access)}}
−
{{rla|0x0d800544|32|LT_GPIO_DIR|GPIO Direction (Starbuck only)}}
+
{{rla|0x0d800544|32|LT_GPIOIOPDIR|GPIO Direction (Starbuck access)}}
−
{{rla|0x0d800548|32|LT_GPIO_IN|GPIO Inputs (Starbuck only)}}
+
{{rla|0x0d800548|32|LT_GPIOIOPIN|GPIO Inputs (Starbuck access)}}
−
{{rla|0x0d80054c|32|LT_GPIO_INTLVL|GPIO Interrupt Levels (Starbuck only)}}
+
{{rla|0x0d80054c|32|LT_GPIOIOPINTLVL|GPIO Interrupt Levels (Starbuck access)}}
−
{{rla|0x0d800550|32|LT_GPIO_INTFLAG|GPIO Interrupt Flags (Starbuck only)}}
+
{{rla|0x0d800550|32|LT_GPIOIOPINTSTS|GPIO Interrupt Flags (Starbuck access)}}
−
{{rla|0x0d800554|32|LT_GPIO_INTMASK|GPIO Interrupt Masks (Starbuck only)}}
+
{{rla|0x0d800554|32|LT_GPIOIOPINTEN|GPIO Interrupt Masks (Starbuck access)}}
−
{{rla|0x0d800558|32|LT_GPIO_STRAPS|GPIO Straps (Starbuck only)}}
+
{{rla|0x0d800558|32|LT_GPIOIOPSTRAPS|GPIO Straps (Starbuck access)}}
−
{{rla|0x0d80055c|32|LT_GPIO_OWNER|GPIO Owner Select (Starbuck only)}}
+
{{rla|0x0d80055c|32|LT_GPIOIOPPPCOWNER|GPIO Owner Select (Starbuck access)}}
|}
|}
== Register descriptions ==
== Register descriptions ==
−
{{regsimple2|HW_GPIO_ENABLE|addr=0x0d8000dc|bits=32|split=24|access=R/W}}
+
{{regsimple2|HW_GPIOIOPEN|addr=0x0d8000dc|bits=32|split=24|access=R/W}}
The bits of this register indicate whether specific GPIO pins are enabled. The typical value is 0xFFFFFF, to enable all pins.
The bits of this register indicate whether specific GPIO pins are enabled. The typical value is 0xFFFFFF, to enable all pins.
----
----
−
{{regsimple2|HW_GPIO_OUT|addr=0x0d8000e0|bits=32|split=24|access=R/W}}
+
{{regsimple2|HW_GPIOIOPOUT|addr=0x0d8000e0|bits=32|split=24|access=R/W}}
This register contains the output value for all pins. These only take effect if the pin is configured as an output.
This register contains the output value for all pins. These only take effect if the pin is configured as an output.
----
----
−
{{regsimple2|HW_GPIO_DIR|addr=0x0d8000e4|bits=32|split=24|access=R/W}}
+
{{regsimple2|HW_GPIOIOPDIR|addr=0x0d8000e4|bits=32|split=24|access=R/W}}
A '1' bit for a pin indicates that it will behave as an output (drive), while a '0' bit tristates the pin and it becomes a high-impedance input.
A '1' bit for a pin indicates that it will behave as an output (drive), while a '0' bit tristates the pin and it becomes a high-impedance input.
----
----
−
{{regsimple2|HW_GPIO_IN|addr=0x0d8000e8|bits=32|split=24|access=R}}
+
{{regsimple2|HW_GPIOIOPIN|addr=0x0d8000e8|bits=32|split=24|access=R}}
This register can be read to obtain the current input value of the GPIO pins.
This register can be read to obtain the current input value of the GPIO pins.
----
----
−
{{regsimple2|HW_GPIO_INTLVL|addr=0x0d8000ec|bits=32|split=24|access=R/W}}
+
{{regsimple2|HW_GPIOIOPINTLVL|addr=0x0d8000ec|bits=32|split=24|access=R/W}}
Configures the pin state that causes an interrupt. If a bit is set in this register, the pin causes an interrupt when high. A zero causes the opposite behavior.
Configures the pin state that causes an interrupt. If a bit is set in this register, the pin causes an interrupt when high. A zero causes the opposite behavior.
----
----
−
{{regsimple2|HW_GPIO_INTFLAG|addr=0x0d8000f0|bits=32|split=24|access=R/Z}}
+
{{regsimple2|HW_GPIOIOPINTSTS|addr=0x0d8000f0|bits=32|split=24|access=R/Z}}
−
Bits in this register indicate which pins have triggered their interrupt flags. Write one to clear a bit back to zero. The bits can only be cleared if the pin is in the idle state: if the pin state equals the value in the HW_GPIO_INTLVL register, then the corresponding bit in HW_GPIO_INTFLAG will be stuck at one until the pin state reverts or the value in HW_GPIO_INTLVL is inverted. Once the pin is idle, the bits in this register may be cleared by writing one to them.
+
Bits in this register indicate which pins have triggered their interrupt flags. Write one to clear a bit back to zero. The bits can only be cleared if the pin is in the idle state: if the pin state equals the value in the HW_GPIOIOPINTLVL register, then the corresponding bit in HW_GPIOIOPINTSTS will be stuck at one until the pin state reverts or the value in HW_GPIOIOPINTLVL is inverted. Once the pin is idle, the bits in this register may be cleared by writing one to them.
----
----
−
{{regsimple2|HW_GPIO_INTMASK|addr=0x0d8000f4|bits=32|split=24|access=R/W}}
+
{{regsimple2|HW_GPIOIOPINTEN|addr=0x0d8000f4|bits=32|split=24|access=R/W}}
−
Only the bits set in this register propagate their interrupts to the master [[Hardware/Latte_IRQ_Controller|GPIO interrupt]] (#11). All other pin interrupts are ignored, although the interrupt state can still be queried and cleared in HW_GPIO_INTFLAG. Note: Pins configured for Espresso access do not generate Latte IRQ #11. Instead, they generate Latte IRQ #10. In other words, the IRQ generation logic for #11 is HW_GPIO_INTMASK & HW_GPIO_INTFLAG & ~HW_GPIO_OWNER.
+
Only the bits set in this register propagate their interrupts to the master [[Hardware/Latte_IRQ_Controller|GPIIOP]] interrupt (#11). All other pin interrupts are ignored, although the interrupt state can still be queried and cleared in HW_GPIOIOPINTSTS. Note: Pins configured for Espresso access do not generate Latte IRQ #11. Instead, they generate Latte IRQ #10. In other words, the IRQ generation logic for #11 is HW_GPIOIOPINTEN & HW_GPIOIOPINTSTS & ~HW_GPIOIOPPPCOWNER.
----
----
−
{{regsimple2|HW_GPIO_STRAPS|addr=0x0d8000f8|bits=32|split=24|access=R}}
+
{{regsimple2|HW_GPIOIOPSTRAPS|addr=0x0d8000f8|bits=32|split=24|access=R}}
This register appears to contain the input state at some point in time, possibly power-on or interrupt or something like that. Writes do not seem possible.
This register appears to contain the input state at some point in time, possibly power-on or interrupt or something like that. Writes do not seem possible.
----
----
−
{{regsimple2|HW_GPIO_OWNER|addr=0x0d8000fc|bits=32|split=24|access=R/W}}
+
{{regsimple2|HW_GPIOIOPPPCOWNER|addr=0x0d8000fc|bits=32|split=24|access=R/W}}
−
This register configures which pins can be controlled by the HW_GPIOB_* registers. A one bit configures the pin for control via the HW_GPIOB_* registers, which lets it be accessed by the Espresso. A zero bit restricts access to the HW_GPIO_* registers, which are Starbuck-only. The HW_GPIO_* registers always have read access to all pins, but any writes (changes) must go through the HW_GPIOB_* registers if the corresponding bit is set in the HW_GPIO_OWNER register.
+
This register configures which pins can be controlled by the HW_GPIOPPC* registers. A one bit configures the pin for control via the HW_GPIOPPC* registers, which lets it be accessed by the Espresso. A zero bit restricts access to the HW_GPIOIOP* registers, which are Starbuck-only. The HW_GPIOIOP* registers always have read access to all pins, but any writes (changes) must go through the HW_GPIOPPC* registers if the corresponding bit is set in the HW_GPIOIOPPPCOWNER register.
----
----
−
{{regsimple2|HW_GPIOB_OUT|addr=0x0d8000c0|bits=32|split=24|access=R/W}}
+
{{regsimple2|HW_GPIOPPCOUT|addr=0x0d8000c0|bits=32|split=24|access=R/W}}
−
{{regsimple2|HW_GPIOB_DIR|addr=0x0d8000c4|bits=32|split=24|access=R/W}}
+
{{regsimple2|HW_GPIOPPCDIR|addr=0x0d8000c4|bits=32|split=24|access=R/W}}
−
{{regsimple2|HW_GPIOB_IN|addr=0x0d8000c8|bits=32|split=24|access=R}}
+
{{regsimple2|HW_GPIOPPCIN|addr=0x0d8000c8|bits=32|split=24|access=R}}
−
{{regsimple2|HW_GPIOB_INTLVL|addr=0x0d8000cc|bits=32|split=24|access=R/W}}
+
{{regsimple2|HW_GPIOPPCINTLVL|addr=0x0d8000cc|bits=32|split=24|access=R/W}}
−
{{regsimple2|HW_GPIOB_INTFLAG|addr=0x0d8000d0|bits=32|split=24|access=R/Z}}
+
{{regsimple2|HW_GPIOPPCINTSTS|addr=0x0d8000d0|bits=32|split=24|access=R/Z}}
−
{{regsimple2|HW_GPIOB_INTMASK|addr=0x0d8000d4|bits=32|split=24|access=R/W}}
+
{{regsimple2|HW_GPIOPPCINTEN|addr=0x0d8000d4|bits=32|split=24|access=R/W}}
−
{{regsimple2|HW_GPIOB_STRAPS|addr=0x0d8000d8|bits=32|split=24|access=R}}
+
{{regsimple2|HW_GPIOPPCSTRAPS|addr=0x0d8000d8|bits=32|split=24|access=R}}
−
These registers operate identically to their HW_GPIO_* counterparts above, but they only control the pins which have their respective HW_GPIO_OWNER bits set to 1. They can be accessed by the Espresso as well as the Starbuck. The master interrupt feeds to the [[Hardware/Latte_IRQ_Controller|GPIOB interrupt]] (#10). The generation logic would be HW_GPIOB_INTFLAG & HW_GPIOB_INTMASK, with an implicit AND with HW_GPIO_OWNER since the HW_GPIOB_* registers are already masked with the HW_GPIO_OWNER register.
+
These registers operate identically to their HW_GPIOIOP* counterparts above, but they only control the pins which have their respective HW_GPIOIOPPPCOWNER bits set to 1. They can be accessed by the Espresso as well as the Starbuck. The master interrupt feeds to the [[Hardware/Latte_IRQ_Controller|GPIPPC]] interrupt (#10). The generation logic would be HW_GPIOPPCINTSTS & HW_GPIOPPCINTEN, with an implicit AND with HW_GPIOIOPPPCOWNER since the HW_GPIOPPC* registers are already masked with the HW_GPIOIOPPPCOWNER register.
−
When switching owners, copying of the data is not necessary. For example, if pin 0 has certain configuration in the HW_GPIO_* registers, and that bit is then set in the HW_GPIO_OWNER register, those settings will immediately be visible in the HW_GPIOB_* registers. There is only one set of data registers, and the HW_GPIO_OWNER register just controls the access that the HW_GPIOB_* registers have to that data.
+
When switching owners, copying of the data is not necessary. For example, if pin 0 has certain configuration in the HW_GPIOIOP* registers, and that bit is then set in the HW_GPIOIOPPPCOWNER register, those settings will immediately be visible in the HW_GPIOB_* registers. There is only one set of data registers, and the HW_GPIOIOPPPCOWNER register just controls the access that the HW_GPIOPPC* registers have to that data.
----
----
−
{{regsimple2|LT_GPIOB_OUT|addr=0x0d800520|bits=32|split=24|access=R/W}}
+
{{regsimple2|LT_GPIOPPCOUT|addr=0x0d800520|bits=32|split=24|access=R/W}}
−
{{regsimple2|LT_GPIOB_DIR|addr=0x0d800524|bits=32|split=24|access=R/W}}
+
{{regsimple2|LT_GPIOPPCDIR|addr=0x0d800524|bits=32|split=24|access=R/W}}
−
{{regsimple2|LT_GPIOB_IN|addr=0x0d800528|bits=32|split=24|access=R}}
+
{{regsimple2|LT_GPIOPPCIN|addr=0x0d800528|bits=32|split=24|access=R}}
−
{{regsimple2|LT_GPIOB_INTLVL|addr=0x0d80052c|bits=32|split=24|access=R/W}}
+
{{regsimple2|LT_GPIOPPCINTLVL|addr=0x0d80052c|bits=32|split=24|access=R/W}}
−
{{regsimple2|LT_GPIOB_INTFLAG|addr=0x0d800530|bits=32|split=24|access=R/Z}}
+
{{regsimple2|LT_GPIOPPCINTSTS|addr=0x0d800530|bits=32|split=24|access=R/Z}}
−
{{regsimple2|LT_GPIOB_INTMASK|addr=0x0d800534|bits=32|split=24|access=R/W}}
+
{{regsimple2|LT_GPIOPPCINTEN|addr=0x0d800534|bits=32|split=24|access=R/W}}
−
{{regsimple2|LT_GPIOB_STRAPS|addr=0x0d800538|bits=32|split=24|access=R}}
+
{{regsimple2|LT_GPIOPPCSTRAPS|addr=0x0d800538|bits=32|split=24|access=R}}
−
{{regsimple2|LT_GPIO_ENABLE|addr=0x0d80053c|bits=32|split=24|access=R/W}}
+
{{regsimple2|LT_GPIOIOPEN|addr=0x0d80053c|bits=32|split=24|access=R/W}}
−
{{regsimple2|LT_GPIO_OUT|addr=0x0d800540|bits=32|split=24|access=R/W}}
+
{{regsimple2|LT_GPIOIOPOUT|addr=0x0d800540|bits=32|split=24|access=R/W}}
−
{{regsimple2|LT_GPIO_DIR|addr=0x0d800544|bits=32|split=24|access=R/W}}
+
{{regsimple2|LT_GPIOIOPDIR|addr=0x0d800544|bits=32|split=24|access=R/W}}
−
{{regsimple2|LT_GPIO_IN|addr=0x0d800548|bits=32|split=24|access=R}}
+
{{regsimple2|LT_GPIOIOPIN|addr=0x0d800548|bits=32|split=24|access=R}}
−
{{regsimple2|LT_GPIO_INTLVL|addr=0x0d80054c|bits=32|split=24|access=R/W}}
+
{{regsimple2|LT_GPIOIOPINTLVL|addr=0x0d80054c|bits=32|split=24|access=R/W}}
−
{{regsimple2|LT_GPIO_INTFLAG|addr=0x0d800550|bits=32|split=24|access=R/Z}}
+
{{regsimple2|LT_GPIOIOPINTSTS|addr=0x0d800550|bits=32|split=24|access=R/Z}}
−
{{regsimple2|LT_GPIO_INTMASK|addr=0x0d800554|bits=32|split=24|access=R/W}}
+
{{regsimple2|LT_GPIOIOPINTEN|addr=0x0d800554|bits=32|split=24|access=R/W}}
−
{{regsimple2|LT_GPIO_STRAPS|addr=0x0d800558|bits=32|split=24|access=R}}
+
{{regsimple2|LT_GPIOIOPSTRAPS|addr=0x0d800558|bits=32|split=24|access=R}}
−
{{regsimple2|LT_GPIO_OWNER|addr=0x0d80055c|bits=32|split=24|access=R/W}}
+
{{regsimple2|LT_GPIOIOPPPCOWNER|addr=0x0d80055c|bits=32|split=24|access=R/W}}
These registers work identically to those used for the first GPIO group.
These registers work identically to those used for the first GPIO group.