VSF Documented
Macros
device.h File Reference
#include "hal/vsf_hal_cfg.h"
#include "../common/vendor/inc/ch32f10x.h"
#include "../common/__common.h"

Go to the source code of this file.

Macros

#define VSF_DEV_SWI_LIST
 
#define CH32F10X_HSE_FREQ_HZ   (12 * 1000 * 1000)
 
#define CH32F10X_LSE_FREQ_HZ   (32768)
 
#define CH32F10X_PLL_FREQ_HZ   (72 * 1000 * 1000)
 
#define CH32F10X_SYS_FREQ_HZ   (72 * 1000 * 1000)
 
#define CH32F10X_AHB_FREQ_HZ   (72 * 1000 * 1000)
 
#define CH32F10X_APB1_FREQ_HZ   (72 * 1000 * 1000)
 
#define CH32F10X_APB2_FREQ_HZ   (72 * 1000 * 1000)
 
#define USB_HDC_COUNT   1
 
#define USB_HDC_REG_BASE   0x40023400
 
#define USB_HDC_IRQN   USBHD_IRQn
 
#define USB_HDC_IRQHandler   USBHD_IRQHandler
 
#define USB_DC_COUNT   1
 
#define USB_DC_EP_NUM   8
 
#define USB_DC_LP_IRQN   USB_LP_CAN1_RX0_IRQn
 
#define USB_DC_HP_IRQN   USB_HP_CAN1_TX_IRQn
 
#define USB_DC_REG_BASE   0x40005C00L
 
#define USB_DC_PMA_BASE   0x40006000L
 
#define USB_DC0_TYPE   usbd
 
#define USB_DC0_IRQHandler   USB_LP_CAN1_RX0_IRQHandler
 

Macro Definition Documentation

◆ VSF_DEV_SWI_LIST

#define VSF_DEV_SWI_LIST

◆ CH32F10X_HSE_FREQ_HZ

#define CH32F10X_HSE_FREQ_HZ   (12 * 1000 * 1000)

◆ CH32F10X_LSE_FREQ_HZ

#define CH32F10X_LSE_FREQ_HZ   (32768)

◆ CH32F10X_PLL_FREQ_HZ

#define CH32F10X_PLL_FREQ_HZ   (72 * 1000 * 1000)

◆ CH32F10X_SYS_FREQ_HZ

#define CH32F10X_SYS_FREQ_HZ   (72 * 1000 * 1000)

◆ CH32F10X_AHB_FREQ_HZ

#define CH32F10X_AHB_FREQ_HZ   (72 * 1000 * 1000)

◆ CH32F10X_APB1_FREQ_HZ

#define CH32F10X_APB1_FREQ_HZ   (72 * 1000 * 1000)

◆ CH32F10X_APB2_FREQ_HZ

#define CH32F10X_APB2_FREQ_HZ   (72 * 1000 * 1000)

◆ USB_HDC_COUNT

#define USB_HDC_COUNT   1

◆ USB_HDC_REG_BASE

#define USB_HDC_REG_BASE   0x40023400

◆ USB_HDC_IRQN

#define USB_HDC_IRQN   USBHD_IRQn

◆ USB_HDC_IRQHandler

#define USB_HDC_IRQHandler   USBHD_IRQHandler

◆ USB_DC_COUNT

#define USB_DC_COUNT   1

◆ USB_DC_EP_NUM

#define USB_DC_EP_NUM   8

◆ USB_DC_LP_IRQN

#define USB_DC_LP_IRQN   USB_LP_CAN1_RX0_IRQn

◆ USB_DC_HP_IRQN

#define USB_DC_HP_IRQN   USB_HP_CAN1_TX_IRQn

◆ USB_DC_REG_BASE

#define USB_DC_REG_BASE   0x40005C00L

◆ USB_DC_PMA_BASE

#define USB_DC_PMA_BASE   0x40006000L

◆ USB_DC0_TYPE

#define USB_DC0_TYPE   usbd

◆ USB_DC0_IRQHandler

#define USB_DC0_IRQHandler   USB_LP_CAN1_RX0_IRQHandler