summaryrefslogtreecommitdiff
path: root/bsp/wch/arm/ch579m/board/drv_usbh.h
blob: 3278cfea98acdea9fd4e2594d42613d06b9b7657 (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
/*
 * Copyright (c) 2006-2022, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author            Notes
 * 2022-02-16     Tuber             first version
 */

#ifndef __DRV_USBH_H__
#define __DRV_USBH_H__
#include <rtthread.h>

#define USB_PID_SETUP           0x0D
#define USB_PID_IN              0x09
#define USB_PID_OUT             0x01
#define USB_PID_SOF             0x05
#define USB_PID_ACK             0x02
#define USB_PID_NAK             0x0A
#define USB_PID_STALL           0x0E
#define USB_PID_DATA0           0x03
#define USB_PID_DATA1           0x0B
#define USB_PID_PRE             0x0C

int rt_hw_usbh_init(void);

#endif