Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| ctboard:peripherals:led [2017/08/29 09:21] – [LED] ruan | ctboard:peripherals:led [2026/06/25 15:13] (current) – [Programming Example] scbj | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| > Supported [[ctboard: | > Supported [[ctboard: | ||
| \\ | \\ | ||
| + | |||
| + | ===== Registers ===== | ||
| + | |||
| + | The registers are read / write. | ||
| + | |||
| + | \\ {{ctboard_led_reg.svg}} \\ \\ | ||
| + | |||
| + | ===== Diagram ===== | ||
| + | |||
| + | \\ {{: | ||
| ===== Programming Example ===== | ===== Programming Example ===== | ||
| - | The code snippets below shows how to use the LEDs. | + | The code snippets below show how to use the LEDs. |
| <code c> | <code c> | ||
| Line 21: | Line 31: | ||
| \\ | \\ | ||
| - | < | + | < |
| - | ADDR_LED | + | .equ ADDR_LED, 0x60000100 |
| - | LDR | + | ldr r0, =ADDR_LED |
| - | | + | |
| - | | + | |
| - | | + | |
| </ | </ | ||
| \\ | \\ | ||
| - | ===== Registers ===== | ||
| - | |||
| - | The Registers are read / write. | ||
| - | |||
| - | \\ {{ctboard_led_reg.svg}} \\ \\ | ||
| - | |||
| - | ===== Diagram ===== | ||
| - | |||
| - | \\ {{: | ||