GPIO Registers: Difference between revisions

Rewrite page
 
(6 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 150: Line 150:
=== GPIO pins ===
=== GPIO pins ===


[[GPIO services]] bitmasks use this table, in that order:
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:


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 159: Line 161:
| 0
| 0
| ?
| ?
| GPIO1_0 (?)
| Debug button (?) (active-low)
|-
|-
| 1
| 1
| 0x63
| 0x63 (falling edge)
| Touch Pen down
| Touch Screen (active low, 0 = screen pressed)
|-
|-
| 2
| 2
| 0x60
| 0x60 (falling edge)
0x62 (rising edge)
| Shell closed
| Shell closed
|-style="border-top: double"
|-style="border-top: double"
Line 175: Line 178:
| 1
| 1
| 0x66
| 0x66
| GPIO2_1 (?)
| 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
| 0x68
| 0x68
| C-stick
| C-stick interrupt
|-
|-
| 1
| 1
| 0x69
| 0x69
| IrDA
| IrDA interrupt (active-low)
|-
|-
| 2
| 2
| 0x6A
| 0x6A
| Gyro
| Gyro interrupt
|-
|-
| 3
| 3
| 0x6B
| 0x6B
| GPIO3_3 (?)
| C-stick "stop" (output)
|-
|-
| 4
| 4
| 0x6C
| 0x6C
| GPIO3_4 (?)
| IrDA TX-RC (output)
|-
|-
| 5
| 5
| 0x6D
| 0x6D
| GPIO3_5 (?)
| IrDA RXD (active-low)
|-
|-
| 6
| 6
| 0x6E
| 0x6E
| GPIO3_6 (?)
| NFC output1 (?)
|-
|-
| 7
| 7
| 0x6F
| 0x6F
| GPIO3_7 (?)
| NFC output2 (?)
|-
|-
| 8
| 8
| 0x70
| 0x70
| GPIO3_8 (?)
| Headphones button/half-inserted (active-low)
|-
|-
| 9
| 9
| 0x71
| 0x71
| MCU
| MCU interrupt
|-
|-
| 10
| 10
| 0x72
| 0x72
| NFC
| NFC interrupt (?)
|-
|-
| 11
| 11
| 0x73
| 0x73
| GPIO3_11 (?)
| QTM output (?)
|-
|-
|-style="border-top: double"
|-style="border-top: double"
| DATA2.0
| DATA2.0
| -
| -
| GPIO3_DATA2_0 (wifi related?)
| WiFi enable
|}
|}