GPIO Registers: Difference between revisions

 
(3 intermediate revisions by the same user not shown)
Line 60: Line 60:
|-
|-
| style="background: green" | Yes
| style="background: green" | Yes
| [[#GPIOn_DATA2|GPIO2_DATA2]]
| [[#GPIOn_DATA2|GPIO3_DATA2]]
| 0x10147028
| 0x10147028
| 2
| 2
Line 151: Line 151:


Only GPIO2 and GPIO3 pins have their interrupts configurable. Active low pins should be configured as "falling edge", and output ports shouldn't have interrupts enabled at all.
Only GPIO2 and GPIO3 pins have their interrupts configurable. Active low pins should be configured as "falling edge", and output ports shouldn't have interrupts enabled at all.


[[GPIO Services]] bitmasks use this table, in that order:
[[GPIO Services]] bitmasks use this table, in that order:
Line 166: Line 165:
| 1
| 1
| 0x63 (falling edge)
| 0x63 (falling edge)
| Touch Pen down (active low, 0 = screen pressed)
| Touch Screen (active low, 0 = screen pressed)
|-
|-
| 2
| 2
Line 175: Line 174:
| 0
| 0
| 0x64
| 0x64
| Headphones detected (CODEC)
| Headphones inserted
|-
|-
| 1
| 1
| 0x66
| 0x66
| TWL depop circuit (?) (CODEC, active-low)
| TWL depop circuit (?) (active-low)
|-style="border-top: double"
|-style="border-top: double"
| DATA2.0
| DATA2.0
| -
| -
| GPIO2_DATA2_0 (wifi related?)
| WiFi mode/freq. select (0 = CTR, 1 = MP (DS WiFi))
|-style="border-top: double"
|-style="border-top: double"
| 0
| 0
Line 219: Line 218:
| 8
| 8
| 0x70
| 0x70
| Headphones inserted (active-low)
| Headphones button/half-inserted (active-low)
|-
|-
| 9
| 9
Line 236: Line 235:
| DATA2.0
| DATA2.0
| -
| -
| GPIO3_DATA2_0 (wifi related?)
| WiFi enable
|}
|}