aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-07-31 13:55:40 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-07-31 15:04:49 -0400
commit723ae6fd39fae696540c32643fabcb7e790b45b7 (patch)
tree5b53c6a271e02911ed11f0666b9886d129985f46
parent9e49090ac6fb41645e5d09145cc4163e65565788 (diff)
downloadlibrambutan-723ae6fd39fae696540c32643fabcb7e790b45b7.tar.gz
librambutan-723ae6fd39fae696540c32643fabcb7e790b45b7.zip
usb_cdacm: Use config instead of magic numbers.
Sigh. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
-rw-r--r--libmaple/usb/stm32f1/usb_cdcacm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmaple/usb/stm32f1/usb_cdcacm.c b/libmaple/usb/stm32f1/usb_cdcacm.c
index ee3c8e3..6998a25 100644
--- a/libmaple/usb/stm32f1/usb_cdcacm.c
+++ b/libmaple/usb/stm32f1/usb_cdcacm.c
@@ -602,8 +602,8 @@ static void usbReset(void) {
/* set up data endpoint OUT (RX) */
usb_set_ep_type(USB_CDCACM_RX_ENDP, USB_EP_EP_TYPE_BULK);
- usb_set_ep_rx_addr(USB_CDCACM_RX_ENDP, 0x110);
- usb_set_ep_rx_count(USB_CDCACM_RX_ENDP, 64);
+ usb_set_ep_rx_addr(USB_CDCACM_RX_ENDP, USB_CDCACM_RX_ADDR);
+ usb_set_ep_rx_count(USB_CDCACM_RX_ENDP, USB_CDCACM_RX_EPSIZE);
usb_set_ep_rx_stat(USB_CDCACM_RX_ENDP, USB_EP_STAT_RX_VALID);
/* set up data endpoint IN (TX) */