Changes

Jump to navigation Jump to search
397 bytes added ,  20:32, 24 January 2021
Line 149: Line 149:  
== GPIO ==
 
== GPIO ==
 
=== GPIO pins ===
 
=== GPIO pins ===
 +
 +
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 159: Line 162:  
| 0
 
| 0
 
| ?
 
| ?
| GPIO1_0 (?)
+
| Debug button (?) (active-low)
 
|-
 
|-
 
| 1
 
| 1
| 0x63 (falling edge)  
+
| 0x63 (falling edge)
| Touch Pen up
+
| Touch Pen down (active low, 0 = screen pressed)
 
|-
 
|-
 
| 2
 
| 2
Line 172: Line 175:  
| 0
 
| 0
 
| 0x64
 
| 0x64
| Headphones inserted
+
| Headphones detected (CODEC)
 
|-
 
|-
 
| 1
 
| 1
 
| 0x66
 
| 0x66
| GPIO2_1 (?)
+
| TWL depop circuit (?) (CODEC, active-low)
 
|-style="border-top: double"
 
|-style="border-top: double"
 
| DATA2.0
 
| DATA2.0
Line 184: Line 187:  
| 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 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"

Navigation menu