初始版本
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#ifndef ____HDL_USB_H_
|
||||
#define ____HDL_USB_H_
|
||||
|
||||
#include "hc32_ll.h"
|
||||
#include "hdl_clk.h"
|
||||
|
||||
#define USB_DP_PORT (GPIO_PORT_A)
|
||||
#define USB_DP_PIN (GPIO_PIN_12)
|
||||
#define USB_DM_PORT (GPIO_PORT_A)
|
||||
#define USB_DM_PIN (GPIO_PIN_11)
|
||||
#define USB_VBUS_PORT (GPIO_PORT_A)
|
||||
#define USB_VBUS_PIN (GPIO_PIN_09)
|
||||
#define USB_SOF_PORT (GPIO_PORT_A)
|
||||
#define USB_SOF_PIN (GPIO_PIN_08)
|
||||
|
||||
void hdl_usb_init(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user