Remove redundant #ifdef
This commit is contained in:
@@ -228,10 +228,7 @@ void usb_device_full_shutdown(const peripheral_descriptor_t *self)
|
|||||||
// Shutdown class driver
|
// Shutdown class driver
|
||||||
usb_device_hid_generic_deinit(&g_device_composite);
|
usb_device_hid_generic_deinit(&g_device_composite);
|
||||||
|
|
||||||
// Make sure we are clocking to the peripheral to ensure there
|
// Make sure we are clocking to the peripheral to ensure there are no bus errors
|
||||||
// are no bus errors
|
|
||||||
#if defined(PCC_BASE_ADDRS)
|
|
||||||
#else
|
|
||||||
if ((CONTROLLER_ID == kUSB_ControllerKhci0) && (SIM->SCGC4 & SIM_SCGC4_USBOTG_MASK))
|
if ((CONTROLLER_ID == kUSB_ControllerKhci0) && (SIM->SCGC4 & SIM_SCGC4_USBOTG_MASK))
|
||||||
{
|
{
|
||||||
// Disable the USB interrupt
|
// Disable the USB interrupt
|
||||||
@@ -243,7 +240,6 @@ void usb_device_full_shutdown(const peripheral_descriptor_t *self)
|
|||||||
// Turn off clocking to USB
|
// Turn off clocking to USB
|
||||||
SIM->SCGC4 &= ~SIM_SCGC4_USBOTG_MASK;
|
SIM->SCGC4 &= ~SIM_SCGC4_USBOTG_MASK;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*FUNCTION**********************************************************************
|
/*FUNCTION**********************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user