42 lines
1.0 KiB
C
42 lines
1.0 KiB
C
/********************************** (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 <ch32v20x.h>
|
|
|
|
#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 usb_enter_LowPowerMode(void);
|
|
void usb_leave_LowPowerMode(void);
|
|
|
|
void usb_gpio_init(FunctionalState NewState, FunctionalState Pin_In_IPU);
|
|
|
|
|
|
|
|
#endif /* __HW_CONFIG_H */
|