summaryrefslogtreecommitdiff
path: root/src/portable/microchip
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-03-29 16:23:00 +0700
committerhathach <[email protected]>2019-03-29 16:23:00 +0700
commit1c2beba85c223bcf401f877b0c29025490fcdaa4 (patch)
treeb79e6cb6cfab2139a3894d46e4731ec81ce78318 /src/portable/microchip
parent0bdd4bd55002c4563154214a4d57581433cae668 (diff)
working on suspend and resume
change dcd_init signature
Diffstat (limited to 'src/portable/microchip')
-rw-r--r--src/portable/microchip/samd21/dcd_samd21.c4
-rw-r--r--src/portable/microchip/samd51/dcd_samd51.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/src/portable/microchip/samd21/dcd_samd21.c b/src/portable/microchip/samd21/dcd_samd21.c
index 723bd6c3a..a340c888d 100644
--- a/src/portable/microchip/samd21/dcd_samd21.c
+++ b/src/portable/microchip/samd21/dcd_samd21.c
@@ -57,7 +57,7 @@ static void bus_reset(void) {
/*------------------------------------------------------------------*/
/* Controller API
*------------------------------------------------------------------*/
-bool dcd_init (uint8_t rhport)
+void dcd_init (uint8_t rhport)
{
(void) rhport;
@@ -80,8 +80,6 @@ bool dcd_init (uint8_t rhport)
while (USB->DEVICE.SYNCBUSY.bit.ENABLE == 1) {}
USB->DEVICE.INTENSET.reg = USB_DEVICE_INTENSET_SOF | USB_DEVICE_INTENSET_EORST;
-
- return true;
}
void dcd_int_enable(uint8_t rhport)
diff --git a/src/portable/microchip/samd51/dcd_samd51.c b/src/portable/microchip/samd51/dcd_samd51.c
index 9869956c7..13250c38c 100644
--- a/src/portable/microchip/samd51/dcd_samd51.c
+++ b/src/portable/microchip/samd51/dcd_samd51.c
@@ -57,7 +57,7 @@ static void bus_reset(void) {
/*------------------------------------------------------------------*/
/* Controller API
*------------------------------------------------------------------*/
-bool dcd_init (uint8_t rhport)
+void dcd_init (uint8_t rhport)
{
(void) rhport;
@@ -79,8 +79,6 @@ bool dcd_init (uint8_t rhport)
USB->DEVICE.CTRLA.reg = USB_CTRLA_MODE_DEVICE | USB_CTRLA_ENABLE | USB_CTRLA_RUNSTDBY;
while (USB->DEVICE.SYNCBUSY.bit.ENABLE == 1) {}
USB->DEVICE.INTENSET.reg = USB_DEVICE_INTENSET_SOF | USB_DEVICE_INTENSET_EORST;
-
- return true;
}
void dcd_int_enable(uint8_t rhport)