diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-08-01 13:42:08 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-08-01 13:42:08 -0400 |
commit | 1db008ddc9bb16f10b22b14f4fce42ec44e00677 (patch) | |
tree | 0ba8075d26f7fac5790b795ec2ea4e475ffe9ba8 /libmaple/usb/stm32f1 | |
parent | c06c6e85cefb041715d7e037f8e26a4625e30bdc (diff) | |
download | librambutan-1db008ddc9bb16f10b22b14f4fce42ec44e00677.tar.gz librambutan-1db008ddc9bb16f10b22b14f4fce42ec44e00677.zip |
usb_cdcacm: Rename "notification" -> "management".
This keeps things in line with the specification, helping readability.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/usb/stm32f1')
-rw-r--r-- | libmaple/usb/stm32f1/usb_cdcacm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libmaple/usb/stm32f1/usb_cdcacm.c b/libmaple/usb/stm32f1/usb_cdcacm.c index b3160a4..58ac850 100644 --- a/libmaple/usb/stm32f1/usb_cdcacm.c +++ b/libmaple/usb/stm32f1/usb_cdcacm.c @@ -178,9 +178,9 @@ const USB_Descriptor_Config usbVcomDescriptor_Config = { .bLength = sizeof(USB_Descriptor_Endpoint), .bDescriptorType = USB_DESCRIPTOR_TYPE_ENDPOINT, .bEndpointAddress = (USB_DESCRIPTOR_ENDPOINT_IN | - USB_CDCACM_NOTIFICATION_EPNUM), + USB_CDCACM_MANAGEMENT_EPNUM), .bmAttributes = EP_TYPE_INTERRUPT, - .wMaxPacketSize = USB_CDCACM_NOTIFICATION_EPSIZE, + .wMaxPacketSize = USB_CDCACM_MANAGEMENT_EPSIZE, .bInterval = 0xFF, }, @@ -557,11 +557,11 @@ static void usbReset(void) { usb_set_ep_rx_stat(USB_EP0, USB_EP_STAT_RX_VALID); /* setup management endpoint 1 */ - usb_set_ep_type(USB_CDCACM_NOTIFICATION_ENDP, USB_EP_EP_TYPE_INTERRUPT); - usb_set_ep_tx_addr(USB_CDCACM_NOTIFICATION_ENDP, - USB_CDCACM_NOTIFICATION_ADDR); - usb_set_ep_tx_stat(USB_CDCACM_NOTIFICATION_ENDP, USB_EP_STAT_TX_NAK); - usb_set_ep_rx_stat(USB_CDCACM_NOTIFICATION_ENDP, USB_EP_STAT_RX_DISABLED); + usb_set_ep_type(USB_CDCACM_MANAGEMENT_ENDP, USB_EP_EP_TYPE_INTERRUPT); + usb_set_ep_tx_addr(USB_CDCACM_MANAGEMENT_ENDP, + USB_CDCACM_MANAGEMENT_ADDR); + usb_set_ep_tx_stat(USB_CDCACM_MANAGEMENT_ENDP, USB_EP_STAT_TX_NAK); + usb_set_ep_rx_stat(USB_CDCACM_MANAGEMENT_ENDP, USB_EP_STAT_RX_DISABLED); /* TODO figure out differences in style between RX/TX EP setup */ |