File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
libraries/USBDevice/USBDevice Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,9 @@ USBHAL::USBHAL(void) {
86
86
// Disable IRQ
87
87
NVIC_DisableIRQ (USB0_IRQn);
88
88
89
+ #if defined(TARGET_K64F)
90
+ MPU->CESR =0 ;
91
+ #endif
89
92
// fill in callback array
90
93
epCallback[0 ] = &USBHAL::EP1_OUT_callback;
91
94
epCallback[1 ] = &USBHAL::EP1_IN_callback;
@@ -136,9 +139,9 @@ USBHAL::USBHAL(void) {
136
139
while (USB0->USBTRC0 & USB_USBTRC0_USBRESET_MASK);
137
140
138
141
// Set BDT Base Register
139
- USB0->BDTPAGE1 = (uint8_t )((uint32_t )bdt>>8 );
140
- USB0->BDTPAGE2 = (uint8_t )((uint32_t )bdt>>16 );
141
- USB0->BDTPAGE3 = (uint8_t )((uint32_t )bdt>>24 );
142
+ USB0->BDTPAGE1 = (uint8_t )((uint32_t )bdt>>8 );
143
+ USB0->BDTPAGE2 = (uint8_t )((uint32_t )bdt>>16 );
144
+ USB0->BDTPAGE3 = (uint8_t )((uint32_t )bdt>>24 );
142
145
143
146
// Clear interrupt flag
144
147
USB0->ISTAT = 0xff ;
You can’t perform that action at this time.
0 commit comments