Gast
#2301212
Hallo, (Sorry, viel Text aber vermutlich kleines Problem...) Ich möchte mit dem AVR32 Studio: - ein C++ Projekt erstellen - die Library zu den IOs aus dem Framework einfügen - eine kleine main.cpp erstellen, um zu testen Das mit dem Projekt erstellen bekomme ich ohne weiteres hin. File -> New -> AVR C++ Project Target Device: AT32UC3C0512C Project type: 32-Bit AVR/GNU Executable -> Finish Nun binde ich das IO-Element aus dem Framework ein. Framework-> Select Drivers/Components/Services Dort wähle ich GPIO - Gerneral Purpose I/O Controller aus -> Finish Jetzt noch die main.cpp im Projekt erstellen. Rechte Maustate auf TestProjektName -> New -> Source File Source Folder: TestProjektName Source File: main.cpp Template: Default C++ source template -> Finish So nun die main.cpp mit wenig code füllen: #include "gpio.h" int main(void) { while(1)//Nur zum testen ob komillieren geht. {;} //Später möchte ich damit IOs schalten... //pio_clr_gpio_pin(0); //gpio_set_gpio_pin(0); } Und nun kompilliren. Project -> Build all wait... ...währe schön gewesen... 2 errors: **** Build of configuration Debug for project test **** **** Internal Builder is used for build **** avr32-g++ -I../src/SOFTWARE_FRAMEWORK/UTILS/LIBS/NEWLIB_ADDONS/INCLUDE -I../src/SOFTWARE_FRAMEWORK/DRIVERS/INTC -I../src/SOFTWARE_FRAMEWORK/BOARDS -I../src/SOFTWARE_FRAMEWORK/UTILS/PREPROCESSOR -I../src/SOFTWARE_FRAMEWORK/UTILS -I../src/SOFTWARE_FRAMEWORK/DRIVERS/GPIO -O0 -g3 -Wall -c -fmessage-length=0 -mpart=uc3c0512crevc -ffunction-sections -masm-addr-pseudos -omain.o ..\main.cpp In file included from ..\main.cpp:2: ../src/SOFTWARE_FRAMEWORK/DRIVERS/GPIO/gpio.h:101: error: non-local function 'int gpio_enable_module(const<anonymous struct>*, unsigned int)' uses anonymous type ../src/SOFTWARE_FRAMEWORK/DRIVERS/GPIO/gpio.h:125: error: non-local function 'void gpio_enable_gpio(const<anonymous struct>*, unsigned int)' uses anonymous type Build error occurred, build is stopped Time consumed: 703 ms. Was habe ich falsch gemacht??? Währe super, wenn ihr mir weiterhelfen könnt. Gruß Jo