/********************************** (C) COPYRIGHT ******************************* * File Name : hw_config.h * Author : WCH * Version : V1.0.0 * Date : 2021/08/08 * Description : Configuration file for USB. ********************************************************************************* * Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd. * Attention: This software (modified or not) and binary are used for * microcontroller manufactured by Nanjing Qinheng Microelectronics. *******************************************************************************/ #ifndef __HW_CONFIG_H #define __HW_CONFIG_H #include #include "usb_type.h" #ifdef USE_PRINTF #define printf_usb(X...) printf(X) #else #define printf_usb(X...) #endif void usb_conf_clksource(void); void usb_intr_init(void); void Enter_LowPowerMode(void); void Leave_LowPowerMode(void); void USB_Port_Set(FunctionalState NewState, FunctionalState Pin_In_IPU); #endif /* __HW_CONFIG_H */