Skip to content

Teensy Compilation Error #13

@adstep

Description

@adstep

When I compile with MCU=at90usb1286 I see the following error:

 [GCC]     : Compiling C file "Joystick.c"
avr-gcc -c -pipe -gdwarf-2 -g2 -mmcu=at90usb1286  -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 -Iinclude/  -I. -Ilufa/LUFA/.. -DARCH=ARCH_AVR8 -DBOARD=BOARD_NONE -DF_USB=16000000UL  -MMD -MP -MF obj/Joystick.d src/Joystick.c -o obj/Joystick.o
In file included from include/Joystick.h:42:0,
                 from src/Joystick.c:21:
include/avr.h: In function ‘USART_Init’:
include/avr.h:27:5: error: ‘UCSR1D’ undeclared (first use in this function)
     UCSR1D = 0;                         // no cts, no rts
     ^
include/avr.h:27:5: note: each undeclared identifier is reported only once for each function it appears in
lufa/LUFA/Build/DMBS/DMBS/gcc.mk:213: recipe for target 'obj/Joystick.o' failed
make: *** [obj/Joystick.o] Error 1

It compiles fine with MCU=atmega16u2. Anyone else get this problem before?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions