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

Go to the source code of this file.

Macros

#define __HAL_DEVICE_GEEHY_APM32F407_H__
 
#define VSF_DEV_SWI_LIST   79
 
#define SWI0_IRQHandler   CRYPT_IRQHandler
 
#define RNG_IRQHandler   HASH_RNG_IRQHandler
 
#define VSF_HW_USB_OTG1_USB_CFG_SPEED   USB_SPEED_FULL
 
#define VSF_HW_USB_OTG_COUNT   2
 
#define USB_DWCOTG_MAX_EP_NUM   6
 
#define USB_OTG_FS_BASE   ((uint32_t)0x50000000)
 
#define USB_OTG_HS_BASE   ((uint32_t)0x40040000)
 
#define VSF_HW_USB_OTG0_IRQHandler   OTG_FS_IRQHandler
 
#define VSF_HW_USB_OTG0_CONFIG
 
#define VSF_HW_USB_OTG1_IRQHandler   OTG_HS1_IRQHandler
 
#define VSF_HW_USB_OTG1_CONFIG
 

Macro Definition Documentation

◆ __HAL_DEVICE_GEEHY_APM32F407_H__

#define __HAL_DEVICE_GEEHY_APM32F407_H__

◆ VSF_DEV_SWI_LIST

#define VSF_DEV_SWI_LIST   79

◆ SWI0_IRQHandler

#define SWI0_IRQHandler (   void)    CRYPT_IRQHandler

◆ RNG_IRQHandler

#define RNG_IRQHandler (   void)    HASH_RNG_IRQHandler

◆ VSF_HW_USB_OTG1_USB_CFG_SPEED

#define VSF_HW_USB_OTG1_USB_CFG_SPEED   USB_SPEED_FULL

◆ VSF_HW_USB_OTG_COUNT

#define VSF_HW_USB_OTG_COUNT   2

◆ USB_DWCOTG_MAX_EP_NUM

#define USB_DWCOTG_MAX_EP_NUM   6

◆ USB_OTG_FS_BASE

#define USB_OTG_FS_BASE   ((uint32_t)0x50000000)

◆ USB_OTG_HS_BASE

#define USB_OTG_HS_BASE   ((uint32_t)0x40040000)

◆ VSF_HW_USB_OTG0_IRQHandler

#define VSF_HW_USB_OTG0_IRQHandler   OTG_FS_IRQHandler

◆ VSF_HW_USB_OTG0_CONFIG

#define VSF_HW_USB_OTG0_CONFIG
Value:
.dc_ep_num = 4 << 1, \
.hc_ep_num = USB_DWCOTG_MAX_EP_NUM, \
.reg = (void *)USB_OTG_FS_BASE, \
.irq = OTG_FS_IRQn, \
/* vk_dwcotg_hw_info_t */ \
.buffer_word_size = 320, \
.speed = USB_SPEED_FULL, \
.dma_en = false, \
.ulpi_en = false, \
.utmi_en = false, \
.vbus_en = false,
#define USB_DWCOTG_MAX_EP_NUM
Definition device.h:72
#define USB_OTG_FS_BASE
Definition device.h:74
@ USB_SPEED_FULL
Definition usb_common.h:269

◆ VSF_HW_USB_OTG1_IRQHandler

#define VSF_HW_USB_OTG1_IRQHandler   OTG_HS1_IRQHandler

◆ VSF_HW_USB_OTG1_CONFIG

#define VSF_HW_USB_OTG1_CONFIG
Value:
.dc_ep_num = (USB_DWCOTG_MAX_EP_NUM - 1) << 1, \
.hc_ep_num = USB_DWCOTG_MAX_EP_NUM, \
.reg = (void *)USB_OTG_HS_BASE, \
.phy_reg = (void *)(USB_OTG_HS_BASE + 0x200), \
.irq = OTG_HS1_IRQn, \
/* vk_dwcotg_hw_info_t */ \
.buffer_word_size = 1024, \
.dma_en = false, \
.ulpi_en = false, \
.utmi_en = true, \
.vbus_en = false,
#define VSF_HW_USB_OTG1_USB_CFG_SPEED
Definition device.h:65
#define USB_OTG_HS_BASE
Definition device.h:75
class vsf_$ * reg