SPI Driver Implementation
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed Feb 10 08:20:39 UTC 2021
On 10/02/2021 08:37, Jan.Sommer at dlr.de wrote:
>> Assuming they need to be developed, I looked at the RTEMS 6 BSP and
>> Driver Guide that specifies the use of the "SPI bus framework". However, I
>> have looked at some of the Arm BSPs included with RTEMS and they all seem
>> to use the libi2c library that is part of the cpukit. It claims to support both I2C
>> and SPI.
>>
> I think the preferred way is to use the libi2c API for i2c devices only and use the Linux spidev API for SPI devices.
> In the docs are a few drivers which already implement the spidev API (https://docs.rtems.org/branches/master/bsp-howto/spi.html).
> For the cadence-SPI driver I used the general layout of the NXP i.MX SPI driver linked there and implemented it according to the data sheet from Xilinx.
The libi2c is a legacy interface. New I2C drivers should use:
https://docs.rtems.org/branches/master/bsp-howto/i2c.html
--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax: +49-89-18 94 741 - 08
Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
More information about the users
mailing list