Hallo!
Danke für die Antwort!
Hab eben auch was gefunden:
{c]#define GLUE2(a, b) a ## b
#define GLUE3(a, b, c) a ## b ## c
#define CONCAT2(a, b) GLUE2(a, b)
#define CONCAT3(a, b, c) GLUE3(a, b, c)
#define PORTOUT(port) CONCAT2(port,OUT)
#define PORTIN(port) CONCAT2(port,IN)
#define PORTDIR(port) CONCAT2(port,DIR)
#define PORTSEL(port) CONCAT2(port,SEL)[/c]
(steht bei mir in makros.h)
Eigentlich funktionierts, bis auf eine Stelle.
Das sagt der Compiler immer, dass LED_PORT implizit deklariert ist.
Aber das steht im led.h-File drin. Und das nur bei PORTOUT. Mit dem
weiteren Hinweis:
1 | Error[Pe137]: expression must be a modifiable lvalue
|
Verstehe nicht warum ...