summaryrefslogtreecommitdiff
path: root/usb-serial
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2012-05-28 17:37:50 +0000
committerChristian Pointner <equinox@spreadspace.org>2012-05-28 17:37:50 +0000
commit18870c5c3046830db723381186c9153ff87c840a (patch)
tree7a3abdd5a674c63534444751051e45184b8c0158 /usb-serial
parentignoring build stamps (diff)
added posibility to build external lufa lib (not perfect..)
git-svn-id: https://svn.spreadspace.org/avr/trunk@37 aa12f405-d877-488e-9caf-2d797e2a1cc7
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();
}
}