summaryrefslogtreecommitdiffstats
path: root/firmware/usbconfig.h
diff options
context:
space:
mode:
authorJenna Fox <a@creativepony.com>2012-09-23 18:49:13 +1000
committerJenna Fox <a@creativepony.com>2012-09-23 18:49:13 +1000
commit6147b753e9f90bf53b00787239d52706302c64b3 (patch)
treec5d6e96f983327202a1d9de9393a37d633576613 /firmware/usbconfig.h
parentad86a960d576ba1bbb3152dd267b608d0c7b7f3b (diff)
downloadmicronucleus-6147b753e9f90bf53b00787239d52706302c64b3.tar.gz
micronucleus-6147b753e9f90bf53b00787239d52706302c64b3.tar.bz2
micronucleus-6147b753e9f90bf53b00787239d52706302c64b3.zip
fixing bugs which break compilation
Diffstat (limited to 'firmware/usbconfig.h')
-rw-r--r--firmware/usbconfig.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/usbconfig.h b/firmware/usbconfig.h
index bdb58e2..3f31978 100644
--- a/firmware/usbconfig.h
+++ b/firmware/usbconfig.h
@@ -22,9 +22,14 @@
#include "bootloaderconfig.h"
+#define USB_PUBLIC static
+/* Use the define above if you #include usbdrv.c instead of linking against it.
+ * This technique saves a couple of bytes in flash memory.
+ */
+
/* --------------------------- Functional Range ---------------------------- */
-#define USB_CFG_HAVE_INTRIN_ENDPOINT 0
+#define USB_CFG_HAVE_INTRIN_ENDPOINT 1
/* Define this to 1 if you want to compile a version with two endpoints: The
* default control endpoint 0 and an interrupt-in endpoint (any other endpoint
* number).