[En-Nut-Discussion] IH Macro for CM3
Harald Kipp
harald.kipp at egnite.de
Tue Nov 26 10:51:30 CET 2013
Hi Uwe,
On 25.11.2013 17:56, bon at elektron.ikp.physik.tu-darmstadt.de wrote:
> Hello,
>
> some of my last patches provides a macro in
> ../../../../include/arch/cm3/irqreg.h
> to invoke our IRQ handlers in a single line like
> Create_Handler(WWDG, WWDG, NUT_IRQPRI_DEF); /* Window Watchdog */
Minor issue: To be able to distinguish separate words, Nut/OS function
names are typically CamelCase, while variable names use underlines. Do
you think we should change this to Camel_Case? Nut/OS macros are all
upper-case with underlines between words. Any reason to change this?
> Maybe it is usefull for the other CM3 architectures too. Feedback welcome.
I'm using at least 2 compilers, which do not support string
concatenation in macros. I never found any reasonable way to emulate ##,
if the compiler doesn't offer this feature.
Any other way to solve this in the same elegant way? If not, then let's
use this macro. But we should limit its use to solve problems.
Regards,
Harald
More information about the En-Nut-Discussion
mailing list