Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:edge2: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:edge2:applications:gpio:spi [2022/12/02 02:26]
ivan [Introduction]
products:sbc:edge2:applications:gpio:spi [2023/08/13 23:31] (current)
jacobe [Demo Source Code]
Line 3: Line 3:
 ====== Edge2 SPI ====== ====== Edge2 SPI ======
  
-===== Introduction ===== +SPI interface can be founded on [[products:sbc:edge2:applications:gpio:40pin-header|Edge2 16-pin Header]].
- +
-This page introduces the usage of SPI on [[products:sbc:edge2:applications:gpio:40pin-header|40-pin Header]]. +
  
 +/* WHY this information was there ???? 
 +<WRAP important >
 +For Edge2, in order to use the UART , you need to attach the IO extension board.
 +</WRAP>
 +*/
 ===== Reference table ===== ===== Reference table =====
  
Line 28: Line 30:
 ``` ```
 <WRAP important > <WRAP important >
-As SPI pins are also used for other function, e.g. UART7, PWM14, so that you also need to remove node ''uart7'' and ''pwm14''.+As SPI pins are also can used for other function, e.g. ''UART7''''PWM14'', so that you also need to remove node ''uart7'' and ''pwm14''.
 </WRAP> </WRAP>
  
Line 37: Line 39:
 /dev/spidev1.0 /dev/spidev1.0
 ``` ```
- 
-</tabbox> 
  
 ===== Disable SPI ===== ===== Disable SPI =====
Line 80: Line 80:
 } }
  
-static const char *device = "/dev/spidev1.1";+static const char *device = "/dev/spidev1.0";
 static uint32_t mode; static uint32_t mode;
 static uint8_t bits = 8; static uint8_t bits = 8;
Line 543: Line 543:
 ``` ```
  
-Run ''spidev_test'':+Connect PIN11, PIN12 then run ''spidev_test'':
  
 ```shell ```shell
Last modified: 2022/12/02 02:26 by ivan