Ich kann mir unter diesem Bitweisem oder einfach nicht so wirklich was vorstellen.
Hab das programm jetzt genau so gemacht:
Wenn ich jetzt "Make all" drücke kommt immernoch die gleiche Fehlermeldung wie am anfang wo ich euch noch nicht gefragt hab, und zwar diese:Code:#include <avr/io.h> #include <stdint.h> int main (void) { DDRA = 0xff; DDRD = 0x00; while (1) { if ((PIND & (1<<0)) != 0) // ruhig die bitweise Verknüpfung noch mal in Klammern, also if ((PIND & (1<<0)) != 0), konkret -> wenn PD high dann { PORTA |= (1<<0); //PortA0 auf 5V steuern wenn PortD0 ungleich 0, ausgeschrieben heißt das PORTA = PORTA | (1<<), wobei '|' bitweises 'oder' bedeutet } else PORTA &= (1<<0); //wenn PortD0 0 ist soll PortA0 0V haben ,das heißt : ~(1<<0) setze Bit0 und invertiere das Ergebnis, danach mach eine &-Verknüpfung mit PORTA } //ende der While-schleife return 0; }
Ich kann mir das echt nicht erklähren. Hoffe es hat noch jemand ein guten tipp.Code:> "make.exe" all MAKE Version 5.2 Copyright (c) 1987, 2000 Borland Error makefile 451: Command syntax error Error makefile 452: Command syntax error Error makefile 453: Command syntax error Error makefile 454: Command syntax error Error makefile 457: Command syntax error Error makefile 458: Command syntax error Error makefile 460: Command syntax error Error makefile 461: Command syntax error Error makefile 463: Command syntax error Error makefile 465: Command syntax error Error makefile 466: Command syntax error Error makefile 521: Colon expected Error makefile 530: Colon expected Error makefile 552: Too many rules for target 'obj/%.o' Error makefile 562: Too many rules for target '%.s' Error makefile 569: Too many rules for target 'obj/%.o' Error makefile 598: Command syntax error *** 17 errors during make *** > Process Exit Code: 1 > Time Taken: 00:01
MfG Jan







Zitieren
Lesezeichen