diff options
author | Keith Packard <keithp@keithp.com> | 2013-12-18 18:20:55 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-12-18 18:20:55 -0800 |
commit | 0673344289772ed89483948184d6608c272c7c26 (patch) | |
tree | 7ababb412b3891c392ea5da0801acefad45bbf18 | |
parent | 122f491e459b6ff417932370b3f1aa2091c71aca (diff) |
altos/stm: Semantic error in STM usb disable caused it to not work
The USB enable register wasn't actually getting rewritten with the
enable bit turned off, so the USB device was still powered on in flight.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/stm/ao_usb_stm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm/ao_usb_stm.c b/src/stm/ao_usb_stm.c index b00390ec..28a9f9f3 100644 --- a/src/stm/ao_usb_stm.c +++ b/src/stm/ao_usb_stm.c @@ -965,7 +965,7 @@ ao_usb_disable(void) stm_usb.cntr = (1 << STM_USB_CNTR_PDWN) | (1 << STM_USB_CNTR_FRES); /* Disable the interface */ - stm_rcc.apb1enr &+ ~(1 << STM_RCC_APB1ENR_USBEN); + stm_rcc.apb1enr &= ~(1 << STM_RCC_APB1ENR_USBEN); ao_arch_release_interrupts(); } |