Difference between revisions of "File:RPI open spi1.png"

From Waveshare Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 +
==C codes==
 +
===A brief analysis of underlying interfaces===
 +
We have carried out the low-level encapsulation, if you need to know the internal implementation can go to the corresponding directory to check ,for the reason that the hardware platform and the internal implementation are different <br>
  
 +
We can open DEV_Config.c(.h) to see definitions,which in the catalogue RaspberryPi\c\lib\Config<br>
 +
<pre>
 +
1.There are three ways for C to drive:BCM2835 library, WiringPi library and Dev library respectively
 +
2.We use Dev library by default. If you need to use BCM2835 or WiringPi to drive the RaspberryPi\c\Makefile, open RaspberryPi\c\Makefile and modify lines 13-15 as follows: 
 +
</pre>

Revision as of 08:04, 17 January 2022

C codes

A brief analysis of underlying interfaces

We have carried out the low-level encapsulation, if you need to know the internal implementation can go to the corresponding directory to check ,for the reason that the hardware platform and the internal implementation are different

We can open DEV_Config.c(.h) to see definitions,which in the catalogue RaspberryPi\c\lib\Config

1.There are three ways for C to drive:BCM2835 library, WiringPi library and Dev library respectively
2.We use Dev library by default. If you need to use BCM2835 or WiringPi to drive the RaspberryPi\c\Makefile, open RaspberryPi\c\Makefile and modify lines 13-15 as follows:  

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current08:01, 17 January 2022Thumbnail for version as of 08:01, 17 January 2022800 × 341 (117 KB)Eng49 (talk | contribs)