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:
Karl Palsson 2015-10-02 01:53:18 +00:00
parent e121243ce2
commit b9c3c14d7a
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}