mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-30 04:20:26 +00:00
Format.
This commit is contained in:
parent
fd1cde9b89
commit
1cab553f4b
@ -135,15 +135,12 @@ void dcd_remote_wakeup(uint8_t rhport)
|
|||||||
(void) rhport;
|
(void) rhport;
|
||||||
}
|
}
|
||||||
|
|
||||||
void dcd_sof_enable(uint8_t rhport, bool en)
|
void dcd_sof_enable(uint8_t rhport, bool en)
|
||||||
{
|
{
|
||||||
(void) rhport;
|
(void) rhport;
|
||||||
if (en)
|
if (en) {
|
||||||
{
|
|
||||||
USBHSD->INT_EN |= USBHS_SOF_ACT_EN;
|
USBHSD->INT_EN |= USBHS_SOF_ACT_EN;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
USBHSD->INT_EN &= ~(USBHS_SOF_ACT_EN);
|
USBHSD->INT_EN &= ~(USBHS_SOF_ACT_EN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -347,6 +344,7 @@ void dcd_int_handler(uint8_t rhport) {
|
|||||||
|
|
||||||
if (rx_token == PID_SOF) {
|
if (rx_token == PID_SOF) {
|
||||||
dcd_event_sof(rhport, USBHSD->FRAME_NO, true);
|
dcd_event_sof(rhport, USBHSD->FRAME_NO, true);
|
||||||
|
|
||||||
} else if (rx_token == PID_OUT) {
|
} else if (rx_token == PID_OUT) {
|
||||||
uint16_t rx_len = USBHSD->RX_LEN;
|
uint16_t rx_len = USBHSD->RX_LEN;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user