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 [2016/02/25 12:34] – [Programming Example] feur | ctboard:peripherals:button [2022/12/23 11:00] (current) – ruan | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
The 4 buttons on the CT Board are **" | The 4 buttons on the CT Board are **" | ||
The buttons are accessible over the memory mapped interface or on [[stm32: | The buttons are accessible over the memory mapped interface or on [[stm32: | ||
- | > {{ctboard: | + | > {{ctboard: |
- | > Supported [[ctboard: | + | > Supported [[ctboard: |
\\ | \\ | ||
+ | |||
+ | ===== Registers ===== | ||
+ | |||
+ | The Registers are read only. | ||
+ | |||
+ | \\ {{ctboard_button_reg.svg}} \\ \\ | ||
+ | |||
+ | ===== Diagram ===== | ||
+ | |||
+ | \\ {{: | ||
===== Programming Example ===== | ===== Programming Example ===== | ||
- | The code snippet bellow shows how to use the Buttons. | + | The code snippets below show how to use the buttons. |
<code c> | <code c> | ||
#include " | #include " | ||
- | uint8_t data = CT_BUTTON; | + | uint8_t data = CT_BUTTON; |
</ | </ | ||
\\ | \\ | ||
Line 23: | Line 33: | ||
| | ||
LDR r0, =ADDR_BUTTON | LDR r0, =ADDR_BUTTON | ||
- | LDRB r1, [r0, #0] | + | LDRB r1, [r0, #0] |
</ | </ | ||
\\ | \\ | ||
- | ===== Registers ===== | ||
- | |||
- | The Registers are read only. | ||
- | |||
- | \\ {{ctboard_button_reg.svg}} \\ \\ | ||
- | |||
- | ===== Diagram ===== | ||
- | |||
- | \\ {{: |