Skip to content

The Board Joystick driver cannot be used if the makefile BOARD option is not set. In file included from Joystick.h #23

@BROHONKY

Description

@BROHONKY

I'm trying to compile the program but I just get this error and I can't find a way to fix it.

[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. -I../Splatmeme-Printer-master/LUFA/LUFA/.. -DARCH=ARCH_AVR8 -DBOARD=BOARD_NONE -DF_USB=16000000UL -DF_CPU=16000000UL -x c -Os -std=gnu99 -Wstrict-prototypes -DUSE_LUFA_CONFIG_HEADER -IConfig/ -MMD -MP -MF Joystick.d Joystick.c -o Joystick.o
In file included from Joystick.h:48,
from Joystick.c:27:
../Splatmeme-Printer-master/LUFA/LUFA/../LUFA/Drivers/Board/Joystick.h:103:5: error: #error The Board Joystick driver cannot be used if the makefile BOARD option is not set.
In file included from Joystick.h:50,
from Joystick.c:27:
../Splatmeme-Printer-master/LUFA/LUFA/../LUFA/Drivers/Board/Buttons.h:95:5: error: #error The Board Buttons driver cannot be used if the makefile BOARD option is not set.
In file included from Joystick.h:53,
from Joystick.c:27:
Descriptors.h:52: error: conflicting types for 'CALLBACK_USB_GetDescriptor'
../Splatmeme-Printer-master/LUFA/LUFA/../LUFA/Drivers/USB/Core/AVR8/../Device.h:133: error: previous declaration of 'CALLBACK_USB_GetDescriptor' was here
make: *** [Joystick.o] Error 1

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