summaryrefslogtreecommitdiff
path: root/usb-serial
diff options
context:
space:
mode:
Diffstat (limited to 'usb-serial')
-rw-r--r--usb-serial/Makefile14
-rw-r--r--usb-serial/usb-serial.c2
2 files changed, 13 insertions, 3 deletions
diff --git a/usb-serial/Makefile b/usb-serial/Makefile
index b1f7687..868b51d 100644
--- a/usb-serial/Makefile
+++ b/usb-serial/Makefile
@@ -21,9 +21,19 @@
##
NAME := usb-serial
+BOARD_TYPE := teensy2
OBJ := $(NAME).o
LIBS := util led
-BOARD_TYPE := teensy2
-LUFA_DIR := ../contrib/LUFA-120219
+EXTERNAL_LIBS := lufa
+
+LUFA_PATH := ../contrib/LUFA-120219
+LUFA_OPTS = -D USB_DEVICE_ONLY
+LUFA_OPTS += -D DEVICE_STATE_AS_GPIOR=0
+LUFA_OPTS += -D ORDERED_EP_CONFIG
+LUFA_OPTS += -D FIXED_CONTROL_ENDPOINT_SIZE=8
+LUFA_OPTS += -D FIXED_NUM_CONFIGURATIONS=1
+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 += -D INTERRUPT_CONTROL_ENDPOINT
include ../include.mk
diff --git a/usb-serial/usb-serial.c b/usb-serial/usb-serial.c
index 851fd35..e5a67e0 100644
--- a/usb-serial/usb-serial.c
+++ b/usb-serial/usb-serial.c
@@ -32,7 +32,7 @@ int main(void)
led_init();
for(;;) {
- _delay_ms(250);
+ _delay_ms(42);
led_toggle();
}
}