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.
This commit is contained in:
Kuldeep Singh Dhaka 2015-07-26 12:17:15 +05:30 committed by Karl Palsson
parent 4b892724cf
commit afefa6888c
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ LGPL License Terms @ref lgpl_license
/* --- USB device address register masks / bits ---------------------------- */
#define USB_DADDR_ENABLE 0x0080
#define USB_DADDR_EF 0x0080
#define USB_DADDR_ADDR 0x007F
#define USB_LPMCSR_BESL_SHIFT 4

View File

@ -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);
}
/**