[En-Nut-Discussion] Which is the latest greatest branch

Ulrich Prinz ulrich.prinz at googlemail.com
Sun Oct 30 20:18:56 CET 2011


Hi Thiago!

On 29.10.2011 14:55, Thiago A. Corrêa wrote:
> Hi,
> 
> On Sat, Oct 29, 2011 at 8:14 AM, Harald Kipp <harald.kipp at egnite.de> wrote:
>> Hi Ulrich,
>>
> I agree with Harald's goals to keep duplicate code to a minimum and
> support features drivers on all platforms. I can see duplicate code
> drifting from AVR to ARM and AVR32. Those will just get harder to
> merge.
> 
But that is what was a big 'pro' for doing that. You cannot write
efficient drivers for an external component if you have to keep care of
the many features an AVR does not provide. Even the bid width might
render your code ineffective. And that is true for both sides of the world.
If you adapt an existing driver for ARM to your AVR you might get very
blown up code for the poor little AVR or you get a code sprinkled with
#ifdef that no developer can or will understand.

Don't get me wrong, I stilll would love to see API->Upper Level Driver
is still the same for one device, but I cannot see how to write
effective and readable code from UDL->LDL->Core.

Toff Topic -> FRC: New Post Direct or Pointer



More information about the En-Nut-Discussion mailing list