VSF Documented
ohci.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __HAL_DRIVER_NUVOTON_NUC500_OHCI_H__
19#define __HAL_DRIVER_NUVOTON_NUC500_OHCI_H__
20
21/*============================ INCLUDES ======================================*/
22#include "hal/vsf_hal_cfg.h"
23#include "../../../__device.h"
24
26//#include "../../io/io.h"
27//#include "../../pm/pm.h"
28
30
31/*============================ MACROS ========================================*/
32/*============================ MACROFIED FUNCTIONS ===========================*/
33/*============================ TYPES =========================================*/
34
35typedef struct nuc500_ohci_const_t {
37 USBH_T *reg;
39
40typedef struct nuc500_ohci_t {
41 struct {
42 void (*irqhandler)(void *param);
43 void *param;
45
48
49/*============================ GLOBAL VARIABLES ==============================*/
50/*============================ INCLUDES ======================================*/
51/*============================ PROTOTYPES ====================================*/
52
55extern void nuc500_ohci_irq(nuc500_ohci_t *hc);
56
57#endif
58/* EOF */
vsf_err_t
Definition __type.h:42
vsf_err_t nuc500_ohci_init(nuc500_ohci_t *hc, usb_hc_ip_cfg_t *cfg)
Definition ohci.c:28
void nuc500_ohci_irq(nuc500_ohci_t *hc)
Definition ohci.c:63
void nuc500_ohci_get_info(nuc500_ohci_t *hc, usb_hc_ip_info_t *info)
Definition ohci.c:56
enum IRQn IRQn_Type
include the infrastructure
Definition ohci.h:35
IRQn_Type irq
Definition ohci.h:36
USBH_T * reg
Definition ohci.h:37
Definition ohci.h:40
const nuc500_ohci_const_t * param
Definition ohci.h:46
void * param
Definition ohci.h:43
struct nuc500_ohci_t::@609 callback
void(* irqhandler)(void *param)
Definition ohci.h:42
Definition vsf_template_usb.h:446
usb_hc_ip_cfg_t
Definition vsf_template_usb.h:441