aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/USBv1/usb_lld.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-12-31 09:37:45 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-12-31 09:37:45 +0000
commit271176de36b36784b51e5dac2379547e92a2f415 (patch)
treec383def0f63f4d07cbceb03ebc54354894d908e3 /os/hal/ports/STM32/LLD/USBv1/usb_lld.h
parent834cea0441464d57125e851d20182f0663392b2d (diff)
downloadChibiOS-271176de36b36784b51e5dac2379547e92a2f415.tar.gz
ChibiOS-271176de36b36784b51e5dac2379547e92a2f415.tar.bz2
ChibiOS-271176de36b36784b51e5dac2379547e92a2f415.zip
Added option for fast copy in USBv1.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8661 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD/USBv1/usb_lld.h')
-rw-r--r--os/hal/ports/STM32/LLD/USBv1/usb_lld.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/USBv1/usb_lld.h b/os/hal/ports/STM32/LLD/USBv1/usb_lld.h
index c74888dac..64cf395b8 100644
--- a/os/hal/ports/STM32/LLD/USBv1/usb_lld.h
+++ b/os/hal/ports/STM32/LLD/USBv1/usb_lld.h
@@ -89,6 +89,14 @@
#endif
/**
+ * @brief Use faster copy for packets.
+ * @note Makes the driver larger.
+ */
+#if !defined(STM32_USB_USE_FAST_COPY) || defined(__DOXYGEN__)
+#define STM32_USB_USE_FAST_COPY FALSE
+#endif
+
+/**
* @brief Enables the use of a thread for data moving.
* @details This option improves IRQ handling by performing data moving
* from a dedicated internal thread at the cost of increased