Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:edge-2l:applications:gpio:spi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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:sbc:edge2:applications:gpio:40pin-header|Edge-2L 16-pin GPIO header]].+The Serial Peripheral Interface (SPI) is available on the [[products:sbc:edge2:applications:gpio:40pin-header|Edge-2L 16-Pin Header]].
  
 ===== 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 ''pwm1'' overlay from the ''fdt_overlays'' parameter to avoid conflicts. +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 ''pwm1'' overlay from the ''fdt_overlays'' parameter to avoid conflicts. 
 </WRAP> </WRAP>
  
Line 38: Line 38:
 ===== Disable SPI ===== ===== Disable SPI =====
  
-If you wish to use the SPI pins as standard GPIOs, remove the 'edge-2l-io-spi' entry from the 'fdt_overlays' parameter in the Device Tree Overlay configuration file and reboot.+If you wish to use the SPI pins as standard GPIOs, remove the ''edge-2l-io-spi'' entry from the ''fdt_overlays'' parameter in the Device Tree Overlay configuration file and reboot.
  
-===== 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:
Last modified: 2026/02/03 22:21 by gray