This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:edge-2l:applications:gpio:spi [2026/02/03 22:21] gray update by using AI |
products:sbc:edge-2l:applications:gpio:spi [2026/05/11 02:08] (current) nick ↷ Page moved from local:users:gray:products:sbc:edge-2l:applications:gpio:spi to products:sbc:edge-2l:applications:gpio:spi |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ====== Edge-2L SPI ====== | ====== Edge-2L SPI ====== | ||
| - | The Serial Peripheral Interface (SPI) is available on the [[products: | + | The Serial Peripheral Interface (SPI) is available on the [[products: |
| ===== Reference table ===== | ===== Reference table ===== | ||
| Line 26: | Line 26: | ||
| <WRAP important > | <WRAP important > | ||
| - | The SPI pins are multiplexed and can also be used for other functions (e.g., PWM1). If you have previously enabled PWM1, you must remove the '' | + | The SPI pins are multiplexed and can also be used for other functions (e.g., |
| </ | </ | ||
| Line 38: | Line 38: | ||
| ===== Disable SPI ===== | ===== Disable SPI ===== | ||
| - | If you wish to use the SPI pins as standard GPIOs, remove the ' | + | If you wish to use the SPI pins as standard GPIOs, remove the '' |
| - | ===== Demo Source Code ===== | + | ===== Demo source code ===== |
| Below is a standard Linux spidev test program for SPI communication: | Below is a standard Linux spidev test program for SPI communication: | ||
| ```c spidev_test.c | ```c spidev_test.c | ||
| Line 530: | Line 530: | ||
| ``` | ``` | ||
| - | ===== Test Demonstration | + | ===== Test demonstration |
| 1. Prepare a test input file: | 1. Prepare a test input file: | ||