Gast
#2101341
Hallo Leute, ich hänge jetzt schon seit zwei Tagen an einem Problem und komme einfach nicht weiter. Ich benutze Eclipse zusammen mit dem AVR-Plugin. Jetzt wollte ich die RFM12 Lib von hier -> http://www.hansinator.de/rfm12lib/ einbinden und für mein Projekt nutzen. Ich habe mich genau an den folgenden Abschnitt der Doku gehalten: In order to run, the library will need some configuration, which is stored in a header file usually named rfm12_config.h. See the section Configuration for more information on how to configure the library. Otherwise just take the demo configuration header from the library folder, put into your source folder and change the values to your needs. The library itself will not include the configuration file, you have to do this manually before including the rfm12.h header. However, the rfm12.c file will need a special wrapper. To use the library with your project, it's advised to create two wrapper files, which will simplify your makefile and include the library configuration. Just create two files, rfm12.c and rfm12.h inside your source folder and include the RFM12 configuration header (usually rfm12_config.h), as well as the real rfm12.c and rfm12.h. Here's an example: rfm12.h #include "rfm12_config.h" #include "../rfm12lib/rfm12.h" rfm12.c #include "rfm12_config.h" #include "../rfm12lib/rfm12.c" Wenn ich das Projekt dann bauen möchte bekomme ich von Eclipse nur eine Latte Fehlermeldungen: 'BIT_SS' undeclared (first use in this function) 'DATARATE_VALUE' undeclared (first use in this function) 'DDR_SS' undeclared (first use in this function) 'FREQ' undeclared (first use in this function) und so weiter ... Kann mir jemand von euch sagen, was ich falsch mache? Muss ich noch etwas anderes beachten? Gruß JD
