Function declaration fixed. Makefile is correct configured now.
This commit is contained in:
parent
e4e6fc0df1
commit
27f015ea00
4 changed files with 12 additions and 7 deletions
|
@ -315,7 +315,7 @@ const USB_Descriptor_String_t PROGMEM ProductString = USB_STRING_DESCRIPTOR(L"LU
|
|||
* USB host.
|
||||
*/
|
||||
uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
|
||||
const uint8_t wIndex,
|
||||
const uint16_t wIndex,
|
||||
const void** const DescriptorAddress)
|
||||
{
|
||||
const uint8_t DescriptorType = (wValue >> 8);
|
||||
|
|
|
@ -127,7 +127,7 @@
|
|||
|
||||
/* Function Prototypes: */
|
||||
uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
|
||||
const uint8_t wIndex,
|
||||
const uint16_t wIndex,
|
||||
const void** const DescriptorAddress)
|
||||
ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3);
|
||||
|
||||
|
|
|
@ -241,7 +241,6 @@ void CDC1_Task(void)
|
|||
// call(cmd)
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
/* Determine if data/answeres should be sent to the host
|
||||
|
|
14
src/makefile
14
src/makefile
|
@ -13,19 +13,25 @@
|
|||
|
||||
MCU = atmega32u4
|
||||
ARCH = AVR8
|
||||
BOARD = USBKEY
|
||||
F_CPU = 16000000UL
|
||||
#BOARD = USBKEY
|
||||
F_CPU = 16000000
|
||||
F_USB = $(F_CPU)
|
||||
OPTIMIZATION = s
|
||||
TARGET = USB2SerialMux
|
||||
SRC = $(TARGET).c Descriptors.c $(LUFA_SRC_USB) uart/uart.c
|
||||
LUFA_PATH = ../LUFA
|
||||
SRC = $(TARGET).c Descriptors.c uart/uart.c $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)
|
||||
LUFA_PATH = ../LUFA/LUFA
|
||||
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -Iuart/
|
||||
LD_FLAGS =
|
||||
PROGRAMMER = dfu-programmer
|
||||
|
||||
# Default target
|
||||
all:
|
||||
|
||||
program:
|
||||
$(PROGRAMMER) $(MCU) erase
|
||||
$(PROGRAMMER) $(MCU) flash $(TARGET).hex
|
||||
$(PROGRAMMER) $(MCU) reset
|
||||
|
||||
# Include LUFA build script makefiles
|
||||
include $(LUFA_PATH)/Build/lufa_core.mk
|
||||
include $(LUFA_PATH)/Build/lufa_sources.mk
|
||||
|
|
Loading…
Reference in a new issue