[En-Nut-Discussion] Ethernut, UART HW Flowcontrol and maybe Bluetooth

Harald Kipp harald.kipp at egnite.de
Wed Dec 10 13:14:15 CET 2003


>
>What about:
>having one source file that uses one uart. usartavr.c
>all registers are defined by a textual macro called UARTNR
>
>than you can have uasrt0avr.c like
>#define UARTNR 0
>#include "usartavr.c"
>
>and the other with
>#define UARTNR 1
>#include "usartavr.c"
>
>better or worse than the other two options ?

Matthias, I agree. This looks like the nicest solution
to me.

Harald




More information about the En-Nut-Discussion mailing list