Oto błędy:
**** Build of configuration Release for project PWM ****
make all
Building file: ../main.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega16 -DF_CPU=80000UL -MMD -MP -MF"main.d" -MT"main.d" -c -o "main.o" "../main.c"
../main.c:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'key_lock'
../main.c:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'i'
../main.c: In function 'main':
../main.c:40: error: 'i' undeclared (first use in this function)
../main.c:40: error: (Each undeclared identifier is reported only once
../main.c:40: error: for each function it appears in.)
../main.c:44: warning: implicit declaration of function 'zle'
../main.c:44: error: lvalue required as decrement operand
../main.c:54: error: 'key_lock' undeclared (first use in this function)
../main.c: At top level:
../main.c:76: error: expected identifier or '(' before 'if'
../main.c:79: error: expected identifier or '(' before 'else'
../main.c:83: error: expected identifier or '(' before 'if'
../main.c:86: error: expected identifier or '(' before 'else'
../main.c:89: error: expected identifier or '(' before 'if'
../main.c:92: error: expected identifier or '(' before 'else'
../main.c:95: error: expected identifier or '(' before '}' token
make: *** [main.o] Error 1
**** Build Finished ****
Oto kod jaki napisałem
język c
Musisz się zalogować, aby zobaczyć kod źródłowy. Tylko zalogowani użytkownicy mogą widzieć kod.
Przyjmę wszystkie słowa krytyki ale w zamian jakaś pomoc xD