[En-Nut-Discussion] Aspect-Oriented Programming (AOP) and Nut

Matthias Ringwald mringwal at inf.ethz.ch
Thu Oct 26 16:45:02 CEST 2006


Hi Michael

AOP in C on Nut sounds cool. :)

I guess most of all pre-processor #define #ifdef #else .. constructs
are Aspect candidates.

The avr/usart driver e.g. has several options to support half-duplex,
software flowcontrol, hw flowcontrol, cooked modes, etc..
all of those are added with #ifdefs mostly because time in IRQ
handlers is limited and most people prefer to optimize there.

The obvious "debug" and "trace" argument for Aspects clearly applies
to Nut/OS. There are quite some DEBUG and NUTTRACER macros which
can even timestamp IRQs.

good luck,
matthias


other ty



More information about the En-Nut-Discussion mailing list