change indent from 4 -> 2 spaces
This commit is contained in:
parent
cec747776d
commit
933e3cdfc7
|
@ -70,7 +70,6 @@ static xfer_ctl_t xfer_status[EP_MAX][2];
|
||||||
// Setup the control endpoint 0.
|
// Setup the control endpoint 0.
|
||||||
static void bus_reset(void)
|
static void bus_reset(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
for (int ep_num = 0; ep_num < USB_OUT_EP_NUM; ep_num++) {
|
for (int ep_num = 0; ep_num < USB_OUT_EP_NUM; ep_num++) {
|
||||||
USB0.out_ep_reg[ep_num].doepctl |= USB_DO_SNAK0_M; // DOEPCTL0_SNAK
|
USB0.out_ep_reg[ep_num].doepctl |= USB_DO_SNAK0_M; // DOEPCTL0_SNAK
|
||||||
}
|
}
|
||||||
|
@ -124,7 +123,6 @@ static void bus_reset(void)
|
||||||
|
|
||||||
static void enum_done_processing(void)
|
static void enum_done_processing(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
ESP_EARLY_LOGV(TAG, "dcd_irq_handler - Speed enumeration done! Sending DCD_EVENT_BUS_RESET then");
|
ESP_EARLY_LOGV(TAG, "dcd_irq_handler - Speed enumeration done! Sending DCD_EVENT_BUS_RESET then");
|
||||||
// On current silicon on the Full Speed core, speed is fixed to Full Speed.
|
// On current silicon on the Full Speed core, speed is fixed to Full Speed.
|
||||||
// However, keep for debugging and in case Low Speed is ever supported.
|
// However, keep for debugging and in case Low Speed is ever supported.
|
||||||
|
@ -243,7 +241,6 @@ void dcd_connect(uint8_t rhport)
|
||||||
|
|
||||||
bool dcd_edpt_open(uint8_t rhport, tusb_desc_endpoint_t const *desc_edpt)
|
bool dcd_edpt_open(uint8_t rhport, tusb_desc_endpoint_t const *desc_edpt)
|
||||||
{
|
{
|
||||||
|
|
||||||
ESP_LOGV(TAG, "DCD endpoint opened");
|
ESP_LOGV(TAG, "DCD endpoint opened");
|
||||||
(void)rhport;
|
(void)rhport;
|
||||||
|
|
||||||
|
@ -630,7 +627,6 @@ static void handle_epout_ints(void)
|
||||||
|
|
||||||
static void handle_epin_ints(void)
|
static void handle_epin_ints(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
// GINTSTS will be cleared with DAINT == 0
|
// GINTSTS will be cleared with DAINT == 0
|
||||||
// DAINT for a given EP clears when DIEPINTx is cleared.
|
// DAINT for a given EP clears when DIEPINTx is cleared.
|
||||||
// IEPINT will be cleared when DAINT's out bits are cleared.
|
// IEPINT will be cleared when DAINT's out bits are cleared.
|
||||||
|
@ -700,11 +696,17 @@ void dcd_irq_handler(uint32_t rhport)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((int_status & USB_RXFLVI_M) /*& (int_msk & USB_RXFLVIMSK_M)*/) {
|
if (int_status & USB_RXFLVI_M) {
|
||||||
ESP_EARLY_LOGV(TAG, "dcd_irq_handler - rx!");
|
ESP_EARLY_LOGV(TAG, "dcd_irq_handler - rx!");
|
||||||
|
|
||||||
|
// disable RXFLVI interrupt until we read data from FIFO
|
||||||
USB0.gintmsk &= ~USB_RXFLVIMSK_M;
|
USB0.gintmsk &= ~USB_RXFLVIMSK_M;
|
||||||
|
|
||||||
read_rx_fifo();
|
read_rx_fifo();
|
||||||
|
|
||||||
|
// re-enable RXFLVI
|
||||||
USB0.gintmsk |= USB_RXFLVIMSK_M;
|
USB0.gintmsk |= USB_RXFLVIMSK_M;
|
||||||
|
|
||||||
USB0.gintsts = USB_RXFLVI_M;
|
USB0.gintsts = USB_RXFLVI_M;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue