working on suspend and resume
change dcd_init signature
This commit is contained in:
@@ -128,7 +128,7 @@ static void end_of_reset(void) {
|
||||
/*------------------------------------------------------------------*/
|
||||
/* Controller API
|
||||
*------------------------------------------------------------------*/
|
||||
bool dcd_init (uint8_t rhport)
|
||||
void dcd_init (uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
|
||||
@@ -161,8 +161,6 @@ bool dcd_init (uint8_t rhport)
|
||||
|
||||
// Enable pullup, enable peripheral.
|
||||
USB_OTG_FS->GCCFG |= USB_OTG_GCCFG_VBUSBSEN | USB_OTG_GCCFG_PWRDWN;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void dcd_int_enable (uint8_t rhport)
|
||||
|
||||
Reference in New Issue
Block a user