usb: core code cannot use bitbanding.
Bitbanding is not available on CortexM0/M0+, so don't use any bitbanding accesses in core code.
This commit is contained in:
parent
e121243ce2
commit
b9c3c14d7a
|
@ -270,8 +270,8 @@ void st_usbfs_poll(usbd_device *dev)
|
|||
}
|
||||
|
||||
if (dev->user_callback_sof) {
|
||||
BBIO_PERIPH(USB_CNTR_REG, USB_CNTR_SOFM) = 1;
|
||||
*USB_CNTR_REG |= USB_CNTR_SOFM;
|
||||
} else {
|
||||
BBIO_PERIPH(USB_CNTR_REG, USB_CNTR_SOFM) = 0;
|
||||
*USB_CNTR_REG &= ~USB_CNTR_SOFM;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue