summaryrefslogtreecommitdiff
path: root/bsp/gd32303e-eval/Libraries/GD32F30x_usbfs_driver/Include/usbh_int.h
blob: dade4f3d9cf4ba26aeaef9bfe0b8bc1669ca2975 (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
/*!
    \file  usbh_int.h
    \brief USB host mode interrupt handler header file
*/

/*
    Copyright (C) 2017 GigaDevice

    2017-02-10, V1.0.0, firmware for GD32F30x
*/

#ifndef USBH_INT_H
#define USBH_INT_H

#include "usb_core.h"

typedef struct
{
    uint8_t (*sof)                  (usb_core_handle_struct *pudev);
    uint8_t (*device_connected)     (usb_core_handle_struct *pudev);
    uint8_t (*device_disconnected)  (usb_core_handle_struct *pudev);
}usbh_hcd_int_cb_struct;

extern usbh_hcd_int_cb_struct *usbh_hcd_int_fops;

/* function declarations */
/* handle global host interrupt */
uint32_t usbh_isr (usb_core_handle_struct *pudev);

#endif /* USBH_INT_H */