You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i compile i got this error:
avr-gcc (WinAVR 20100110) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[GCC] : Compiling C file "USBtoSerial.c"
avr-gcc -c -pipe -gdwarf-2 -g2 -mmcu=atmega8u2 -fshort-enums -fno-inline-small-functions -fpack-struct -Wall -fno-strict-aliasing -funsigned-char -funsigned-bitfields -ffunction-sections -I. -DARCH=ARCH_AVR8 -DF_CPU=16000000UL -mrelax -fno-jump-tables -x c -Os -std=gnu99 -Wstrict-prototypes -DUSE_LUFA_CONFIG_HEADER -IConfig/ -DAVR_RESET_LINE_PORT="PORTC" -DAVR_RESET_LINE_DDR="DDRC" -DAVR_RESET_LINE_MASK="(1 << 7)" -DAVR_ERASE_LINE_PORT="PORTC" -DAVR_ERASE_LINE_DDR="DDRC" -DAVR_ERASE_LINE_MASK="(1 << 6)" -I. -I../../LUFA/.. -DARCH=ARCH_AVR8 -DBOARD=BOARD_USBKEY -DF_USB=16000000UL -MMD -MP -MF obj/USBtoSerial.d USBtoSerial.c -o obj/USBtoSerial.o
USBtoSerial.c: In function 'SetupHardware':
USBtoSerial.c:154: warning: implicit declaration of function 'clock_prescale_set'
USBtoSerial.c:154: error: 'clock_div_1' undeclared (first use in this function)
USBtoSerial.c:154: error: (Each undeclared identifier is reported only once
USBtoSerial.c:154: error: for each function it appears in.)
make: *** [obj/USBtoSerial.o] Error 1
The text was updated successfully, but these errors were encountered:
It reports that clock_dic_1 is undeclared, have you modified something in the code?, the code should compile perfect without modifications, it has been tested in different machines and it does.
when i compile i got this error:
avr-gcc (WinAVR 20100110) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[GCC] : Compiling C file "USBtoSerial.c"
avr-gcc -c -pipe -gdwarf-2 -g2 -mmcu=atmega8u2 -fshort-enums -fno-inline-small-functions -fpack-struct -Wall -fno-strict-aliasing -funsigned-char -funsigned-bitfields -ffunction-sections -I. -DARCH=ARCH_AVR8 -DF_CPU=16000000UL -mrelax -fno-jump-tables -x c -Os -std=gnu99 -Wstrict-prototypes -DUSE_LUFA_CONFIG_HEADER -IConfig/ -DAVR_RESET_LINE_PORT="PORTC" -DAVR_RESET_LINE_DDR="DDRC" -DAVR_RESET_LINE_MASK="(1 << 7)" -DAVR_ERASE_LINE_PORT="PORTC" -DAVR_ERASE_LINE_DDR="DDRC" -DAVR_ERASE_LINE_MASK="(1 << 6)" -I. -I../../LUFA/.. -DARCH=ARCH_AVR8 -DBOARD=BOARD_USBKEY -DF_USB=16000000UL -MMD -MP -MF obj/USBtoSerial.d USBtoSerial.c -o obj/USBtoSerial.o
USBtoSerial.c: In function 'SetupHardware':
USBtoSerial.c:154: warning: implicit declaration of function 'clock_prescale_set'
USBtoSerial.c:154: error: 'clock_div_1' undeclared (first use in this function)
USBtoSerial.c:154: error: (Each undeclared identifier is reported only once
USBtoSerial.c:154: error: for each function it appears in.)
make: *** [obj/USBtoSerial.o] Error 1
The text was updated successfully, but these errors were encountered: