Is most drivers interfaces should be driver or application specific?

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Sep 16 12:13:09 UTC 2022


On 14.09.22 11:55, Y. HB wrote:
> Hello all.
> 
> I'm writing drivers ( like ADC ) for tms570 on RTEMS.
> To my understanding for now, there are two ways to implement non common 
> interface drivers.
> 1. write a specific driver.h/.c pair to be called like PWM driver inside 
> bsps/arm/beagle/
> 2. use I/O Manager interfaces.
> 
> The latter IO Manager way still requires a specific void * argument to 
> pass actual parameters into the driver, but at least it could provide a 
> way to make application specific or general driver interface not SoC / 
> Device specific.
> 
> Is my understanding correct?

I would not use the IO Manager for new drivers. It would introduced 
overheads and leads to difficult to use interfaces (ioctl).

-- 
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