Hallo, wie kann ich folgendes in ein macro oder ähnliches packen:
1 | #if (F_CPU > 4000000)
|
2 | asm volatile ("nop"); |
3 | #endif
|
4 | #if (F_CPU > 8000000)
|
5 | asm volatile ("nop"); |
6 | #endif
|
Folgendes funktioniert leider nicht:
1 | #define testnop() \
|
2 | #if (F_CPU > 4000000) \
|
3 | asm volatile ("nop");\
|
4 | #endif \
|
5 | #if (F_CPU > 8000000) \
|
6 | asm volatile ("nop"); \
|
7 | #endif \ |
Gibt es bei gcc soetwas wie #BeginMacro #ExitMacro ? Jürgen