29 lines
691 B
C
29 lines
691 B
C
|
/*
|
||
|
* 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
|