blob: 2dfb1d08ad29fe8b8e18558568965f6c800fb3e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/**************************************************************************//**
* @file ohci.c
* @version V1.10
* @brief USB Host library OHCI (USB 1.1) host controller driver.
*
* @copyright (C) 2017 Nuvoton Technology Corp. All rights reserved.
*****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "usb.h"
#include "hub.h"
#include "ohci.h"
/// @cond HIDDEN_SYMBOLS
#define _ohci _ohci1
#define ohci_driver ohci1_driver
#define OHCI_IRQHandler OHCI1_IRQHandler
#include "_ohci.c_"
HC_DRV_T ohci1_driver =
{
ohci_init, /* init */
ohci_shutdown, /* shutdown */
ohci_suspend, /* suspend */
ohci_resume, /* resume */
ohci_ctrl_xfer, /* ctrl_xfer */
ohci_bulk_xfer, /* bulk_xfer */
ohci_int_xfer, /* int_xfer */
ohci_iso_xfer, /* iso_xfer */
ohci_quit_xfer, /* quit_xfer */
ohci_rh_port_reset, /* rthub_port_reset */
ohci_rh_polling, /* rthub_polling */
};
|