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:
parent
4b892724cf
commit
afefa6888c
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user