Re: Hardware Abstraction





Rene Tschaggelar wrote:


I am looking for a concept for abstracting of a hardware. It is desired that the concept should be convenient, clear, consistent, logical and pretty universal.


Such as block and stream devices ?

The abstractions at the lower level are interesting to me. A pin can be an input or output. Some outputs can do PWM. Some inputs can do input capture. So on, so forth.

Also, it would be good to minimize the amount of cryptic system functions, initializations and dependencies.


Those almost infinitely clever abstractions lower
the performance to almost zero when someone then
tries to implement a serial protocol on serial hardware
but with a stream device driver in between.

Size/speed are not the issues in 99% cases. What does matter is the quality and the application development time.


IMO, a HAL is a bad idea in many cases, especially
on embedded hardware. How to dump performance on
zero advantage.

Reinventing a wheel each and every time when starting a new project is not a good idea either.



Rene

VLV

.