Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| ctboard:peripherals:button [2017/08/25 10:43] – ruan | ctboard:peripherals:button [2026/06/25 14:52] (current) – [Programming Example] scbj | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| > Supported [[ctboard: | > Supported [[ctboard: | ||
| \\ | \\ | ||
| + | |||
| + | ===== Registers ===== | ||
| + | |||
| + | The Registers are read only. | ||
| + | |||
| + | \\ {{ctboard_button_reg.svg}} \\ \\ | ||
| + | |||
| + | ===== Diagram ===== | ||
| + | |||
| + | \\ {{: | ||
| ===== Programming Example ===== | ===== Programming Example ===== | ||
| - | The code snippet | + | The code snippets |
| <code c> | <code c> | ||
| Line 19: | Line 29: | ||
| \\ | \\ | ||
| - | < | + | < |
| - | ADDR_BUTTON | + | .equ ADDR_BUTTON, 0x60000210 |
| | | ||
| - | LDR | + | ldr r0, =ADDR_BUTTON |
| - | | + | |
| </ | </ | ||
| \\ | \\ | ||
| - | ===== Registers ===== | ||
| - | |||
| - | The Registers are read only. | ||
| - | |||
| - | \\ {{ctboard_button_reg.svg}} \\ \\ | ||
| - | |||
| - | ===== Diagram ===== | ||
| - | |||
| - | \\ {{: | ||