Procházet zdrojové kódy

Change LUFA build options

tags/v1.9
tmk před 10 roky
rodič
revize
3c5add5f80
3 změnil soubory, kde provedl 10 přidání a 6 odebrání
  1. 1
    1
      keyboard/hhkb/Makefile
  2. 7
    3
      protocol/lufa.mk
  3. 2
    2
      protocol/lufa/descriptor.c

+ 1
- 1
keyboard/hhkb/Makefile Zobrazit soubor

F_USB = $(F_CPU) F_USB = $(F_CPU)


# Interrupt driven control endpoint task # Interrupt driven control endpoint task
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
#OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT




# Boot Section Size in *bytes* # Boot Section Size in *bytes*

+ 7
- 3
protocol/lufa.mk Zobrazit soubor



# Path to the LUFA library # Path to the LUFA library
LUFA_PATH ?= protocol/lufa/LUFA-120730 LUFA_PATH ?= protocol/lufa/LUFA-120730
#LUFA_PATH ?= protocol/lufa/LUFA-130901


# Create the LUFA source path variables by including the LUFA makefile # Create the LUFA source path variables by including the LUFA makefile
ifneq (, $(wildcard $(TOP_DIR)/$(LUFA_PATH)/LUFA/Build/lufa_sources.mk)) ifneq (, $(wildcard $(TOP_DIR)/$(LUFA_PATH)/LUFA/Build/lufa_sources.mk))
#endif #endif


# LUFA library compile-time options and predefined tokens # LUFA library compile-time options and predefined tokens
LUFA_OPTS = -D USB_DEVICE_ONLY
LUFA_OPTS += -D USE_FLASH_DESCRIPTORS
LUFA_OPTS += -D USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)"
LUFA_OPTS = -DUSB_DEVICE_ONLY
LUFA_OPTS += -DUSE_FLASH_DESCRIPTORS
LUFA_OPTS += -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)"
#LUFA_OPTS += -DINTERRUPT_CONTROL_ENDPOINT
LUFA_OPTS += -DFIXED_CONTROL_ENDPOINT_SIZE=8
LUFA_OPTS += -DFIXED_NUM_CONFIGURATIONS=1


OPT_DEFS += -DF_USB=$(F_USB)UL OPT_DEFS += -DF_USB=$(F_USB)UL
OPT_DEFS += -DARCH=ARCH_$(ARCH) OPT_DEFS += -DARCH=ARCH_$(ARCH)

+ 2
- 2
protocol/lufa/descriptor.c Zobrazit soubor

.SubClass = USB_CSCP_NoDeviceSubclass, .SubClass = USB_CSCP_NoDeviceSubclass,
.Protocol = USB_CSCP_NoDeviceProtocol, .Protocol = USB_CSCP_NoDeviceProtocol,


.Endpoint0Size = 8,
.Endpoint0Size = FIXED_CONTROL_ENDPOINT_SIZE,


/* specified in config.h */ /* specified in config.h */
.VendorID = VENDOR_ID, .VendorID = VENDOR_ID,
.ProductStrIndex = 0x02, .ProductStrIndex = 0x02,
.SerialNumStrIndex = NO_DESCRIPTOR, .SerialNumStrIndex = NO_DESCRIPTOR,


.NumberOfConfigurations = 1
.NumberOfConfigurations = FIXED_NUM_CONFIGURATIONS
}; };


/******************************************************************************* /*******************************************************************************

Načítá se…
Zrušit
Uložit