summaryrefslogtreecommitdiffstats
path: root/firmware/usbconfig.h
diff options
context:
space:
mode:
authorcpldcpu <cpldcpu@gmail.com>2014-01-05 12:09:34 +0100
committercpldcpu <cpldcpu@gmail.com>2014-01-05 12:09:34 +0100
commita1a11ed4888bfd84f2215321489b25944404b6ab (patch)
tree0ff67bd7f5f96267e103c38fc24b11cee4364f8b /firmware/usbconfig.h
parentc4907c6896943eb3ff778cb007a9891ac7b68248 (diff)
downloadmicronucleus-a1a11ed4888bfd84f2215321489b25944404b6ab.tar.gz
micronucleus-a1a11ed4888bfd84f2215321489b25944404b6ab.tar.bz2
micronucleus-a1a11ed4888bfd84f2215321489b25944404b6ab.zip
firmware: first working version with polled usb
Diffstat (limited to 'firmware/usbconfig.h')
-rw-r--r--firmware/usbconfig.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/usbconfig.h b/firmware/usbconfig.h
index 6de0611..3dda6b2 100644
--- a/firmware/usbconfig.h
+++ b/firmware/usbconfig.h
@@ -112,10 +112,12 @@
/* #define USB_RX_USER_HOOK(data, len) if(usbRxToken == (uchar)USBPID_SETUP) blinkLED(); */
// Check CRC of all received data
+/*
#define USB_RX_USER_HOOK( data, len ) { \
if ( usbCrc16( data, len + 2 ) != 0x4FFE )\
return;\
}
+*/
/* This macro is a hook if you want to do unconventional things. If it is
* defined, it's inserted at the beginning of received message processing.
* If you eat the received message and don't want default processing to