diff options
author | Kuldeep Singh Dhaka <kuldeepdhaka9@gmail.com> | 2015-07-26 09:47:15 +0300 |
---|---|---|
committer | Karl Palsson <karlp@remake.is> | 2015-07-30 00:22:32 +0300 |
commit | afefa6888c4fbcfff847329e2b315063e58fbeff (patch) | |
tree | 1303a6e94e3ab5c050e7fa96c3b1208c95fd10d9 /lib/usb | |
parent | 4b892724cf74085cfe208c756853fff56ca9b531 (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.c | 2 |
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); } /** |