Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/usb
diff options
context:
space:
mode:
authorKuldeep Singh Dhaka <kuldeepdhaka9@gmail.com>2015-07-26 09:47:15 +0300
committerKarl Palsson <karlp@remake.is>2015-07-30 00:22:32 +0300
commitafefa6888c4fbcfff847329e2b315063e58fbeff (patch)
tree1303a6e94e3ab5c050e7fa96c3b1208c95fd10d9 /lib/usb
parent4b892724cf74085cfe208c756853fff56ca9b531 (diff)
stm32: usb: Rename USB_DADDR_ENABLE flag per ref manual
Use the standard REG_BIT name from the reference manuals, as specified in HACKING All the other bits have the correct naming.
Diffstat (limited to 'lib/usb')
-rw-r--r--lib/usb/usb_f103.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/usb/usb_f103.c b/lib/usb/usb_f103.c
index 201cb132..de3032eb 100644
--- a/lib/usb/usb_f103.c
+++ b/lib/usb/usb_f103.c
@@ -76,7 +76,7 @@ static void stm32f103_set_address(usbd_device *dev, uint8_t addr)
{
(void)dev;
/* Set device address and enable. */
- SET_REG(USB_DADDR_REG, (addr & USB_DADDR_ADDR) | USB_DADDR_ENABLE);
+ SET_REG(USB_DADDR_REG, (addr & USB_DADDR_ADDR) | USB_DADDR_EF);
}
/**