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| | | [[#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 | | Touch Screen (active low, 0 = screen pressed) | ||
|- | |- | ||
| 2 | | 2 | ||
| Line 175: | Line 174: | ||
| 0 | | 0 | ||
| 0x64 | | 0x64 | ||
| Headphones | | Headphones inserted | ||
|- | |- | ||
| 1 | | 1 | ||
| 0x66 | | 0x66 | ||
| TWL depop circuit (?) ( | | TWL depop circuit (?) (active-low) | ||
|-style="border-top: double" | |-style="border-top: double" | ||
| DATA2.0 | | DATA2.0 | ||
| - | | - | ||
| | | 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 | ||
| - | | - | ||
| | | WiFi enable | ||
|} | |} | ||