[En-Nut-Discussion] Nut/OS Initialization

Alain M. alainm at pobox.com
Wed Sep 17 17:09:17 CEST 2008


Thiago A. Corrêa escreveu:
> I don't know exactly how this is implemented in the C code, but we
> could use this approach to remove the hardware init from main.
> If some void hardwareInit() is provided, then it will be called before main (?)

That is against C rules. So I vote against it :(

> This way it remains compatible with older software.

As we are thinking of a significant redisign of a part that is reprted 
as "really bad", maybe there could be an option for old-compatible-way 
and new-way.

Sometimes too much backward compatibility may do more bad than good and 
only old sw compatibility is needed with a possible easy migration path...

That is just my opinion, though :)
Alain




More information about the En-Nut-Discussion mailing list