no więc jak tylko wyrzuce plik S to kompiluje się poprawnie. W pliku nagłowkowym wszystko jest ok, na pewno nie było nic zmieniane.
Załączam jeszcze obydwa pliki źródłowe, może coś nie tak z moim avr studio? (dodałem rozszerzenie txt ponieważ S jest niedopuszczalne)
to jest log z okna build:
Cytat: rm -rf softUart.o extraasm.o softUart.elf dep/* softUart.hex softUart.eep softUart.lss softUart.map
Build succeeded with 0 Warnings...
avr-gcc.exe -mmcu=atmega8 -Wall -gdwarf-2 -Os -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT softUart.o -MF dep/softUart.o.d -c ../softUart.c
avr-gcc.exe -mmcu=atmega8 -mmcu=atmega8 -Wall -gdwarf-2 -Os -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT extraasm.o -MF dep/extraasm.o.d -x assembler-with-cpp -Wa,-gdwarf2 -c ../extraasm.S
../extraasm.S:1:24: warning: extra tokens at end of #include directive
C:/WinAVR/avr/include/stdint.h: Assembler messages:
C:/WinAVR/avr/include/stdint.h:116: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:117: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:118: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:119: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:120: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:121: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:122: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:123: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:135: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:140: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:152: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:157: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:162: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:167: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:172: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:177: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:182: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:187: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:200: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:205: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:210: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:215: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:220: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:225: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:230: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:235: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:249: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/stdint.h:254: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/inttypes.h:76: Error: unknown opcode `typedef'
C:/WinAVR/avr/include/inttypes.h:80: Error: unknown opcode `typedef'
../extraasm.S:13: Error: bad expression
../extraasm.S:13: Error: missing ')'
../extraasm.S:13: Error: missing ')'
../extraasm.S:13: Error: missing ')'
../extraasm.S:13: Error: missing ')'
../extraasm.S:13: Error: constant value required
../extraasm.S:13: Error: `,' required
../extraasm.S:13: Error: constant value required
../extraasm.S:13: Error: garbage at end of line
../extraasm.S:27: Error: bad expression
../extraasm.S:27: Error: missing ')'
../extraasm.S:27: Error: missing ')'
../extraasm.S:27: Error: missing ')'
../extraasm.S:27: Error: missing ')'
../extraasm.S:27: Error: constant value required
../extraasm.S:27: Error: `,' required
../extraasm.S:27: Error: constant value required
../extraasm.S:27: Error: garbage at end of line
make: *** [extraasm.o] Error 1
Build succeeded with 1 Warnings...