VSF Documented
|
Go to the source code of this file.
Macros | |
#define | VSF_DEV_SWI_LIST 5, 45, 50, 69, 81, 83, 91, 94, 95 |
#define | M480_PLL_FREQ_HZ (384 * 1000 * 1000) |
#define | M480_HCLK_FREQ_HZ (192 * 1000 * 1000) |
#define | M480_HXT_FREQ_HZ (12 * 1000 * 1000) |
#define | M480_PCLK0_FREQ_HZ (96 * 1000 * 1000) |
#define | M480_PCLK1_FREQ_HZ (96 * 1000 * 1000) |
#define | M480_BIT_FIELD(__name, __bit_offset, __bit_len, __is_wprotect) __name = (__bit_offset) | ((__bit_len) << 8) | ((__is_wprotect) << 13) |
#define | M480_BIT_FIELD_GET_BITLEN(__bf) (((__bf) >> 8) & 0x1F) |
#define | VSF_HAL_USE_GPIO ENABLED |
#define | VSF_HW_GPIO_COUNT 4 |
#define | VSF_HW_GPIO0_ADDRESS GPIOA_BASE |
#define | VSF_HW_GPIO0_PIN_NUM 16 |
#define | VSF_HW_GPIO1_ADDRESS GPIOB_BASE |
#define | VSF_HW_GPIO1_PIN_NUM 16 |
#define | VSF_HW_GPIO2_ADDRESS GPIOC_BASE |
#define | VSF_HW_GPIO2_PIN_NUM 16 |
#define | VSF_HW_GPIO3_ADDRESS GPIOD_BASE |
#define | VSF_HW_GPIO3_PIN_NUM 16 |
#define | VSF_HW_SPI_COUNT 0x02 |
#define | VSF_HW_SPI0_DMA_TX_CHANNEL 0 |
#define | VSF_HW_SPI0_DMA_RX_CHANNEL 1 |
#define | VSF_HW_SPI1_DMA_TX_CHANNEL 2 |
#define | VSF_HW_SPI1_DMA_RX_CHANNEL 3 |
#define | VSF_HW_SPI2_DMA_TX_CHANNEL 4 |
#define | VSF_HW_SPI2_DMA_RX_CHANNEL 5 |
#define | VSF_HW_USB_HC_COUNT 1 |
#define | VSF_HW_USB_HC_OHCI_COUNT 1 |
#define | VSF_HW_USB_HC0_TYPE ohci |
#define | VSF_HW_USB_HC0_IRQHandler OHCI_IRQHandler |
#define | VSF_HW_USB_HC0_CONFIG |
#define | VSF_HW_USB_DC_COUNT 1 |
#define | VSF_HW_USB_DC_HS_COUNT 1 |
#define | VSF_HW_USB_DC_FS_COUNT 0 |
#define | VSF_HW_USB_DC0_TYPE usbd_hs |
#define | VSF_HW_USB_DC0_IRQHandler USBD20_IRQHandler |
#define | VSF_HW_USB_DC0_EP_NUM 14 |
#define | VSF_HW_USB_DC0_CONFIG |
#define | VSF_HW_USART_COUNT 5 |
#define | VSF_HW_USART0_RST ((4ul << 24) | SYS_IPRST1_UART0RST_Pos) |
#define | VSF_HW_USART1_RST ((4ul << 24) | SYS_IPRST1_UART1RST_Pos) |
#define | VSF_HW_USART2_RST ((4ul << 24) | SYS_IPRST1_UART2RST_Pos) |
#define | VSF_HW_USART3_RST ((4ul << 24) | SYS_IPRST1_UART3RST_Pos) |
#define | VSF_HW_USART4_RST ((4ul << 24) | SYS_IPRST1_UART4RST_Pos) |
#define | VSF_HW_USART5_RST ((4ul << 24) | SYS_IPRST1_UART5RST_Pos) |
#define | VSF_HW_USART0_MODULE ((1ul << 30) | (1ul << 28) | (0x3ul << 25) | (24ul << 20) | (0ul << 18) | (0xFul << 10) | (8ul << 5) |(16ul << 0)) |
#define | VSF_HW_USART1_MODULE ((1ul << 30) | (1ul << 28) | (0x3ul << 25) | (26ul << 20) | (0ul << 18) | (0xFul << 10) | (12ul << 5) |(17ul << 0)) |
#define | VSF_HW_USART2_MODULE ((1ul << 30) | (3ul << 28) | (0x3ul << 25) | (24ul << 20) | (3ul << 18) | (0xFul << 10) | (0ul << 5) |(18ul << 0)) |
#define | VSF_HW_USART3_MODULE ((1ul << 30) | (3ul << 28) | (0x3ul << 25) | (26ul << 20) | (3ul << 18) | (0xFul << 10) | (4ul << 5) |(19ul << 0)) |
#define | VSF_HW_USART4_MODULE ((1ul << 30) | (3ul << 28) | (0x3ul << 25) | (28ul << 20) | (3ul << 18) | (0xFul << 10) | (8ul << 5) |(20ul << 0)) |
#define | VSF_HW_USART5_MODULE ((1ul << 30) | (3ul << 28) | (0x3ul << 25) | (30ul << 20) | (3ul << 18) | (0xFul << 10) | (12ul << 5) |(21ul << 0)) |
#define | VSF_HW_USART0SEL_HXT (0x0UL << CLK_CLKSEL1_UART0SEL_Pos) |
#define | VSF_HW_USART0SEL_LXT (0x2UL << CLK_CLKSEL1_UART0SEL_Pos) |
#define | VSF_HW_USART0SEL_PLL (0x1UL << CLK_CLKSEL1_UART0SEL_Pos) |
#define | VSF_HW_USART0SEL_HIRC (0x3UL << CLK_CLKSEL1_UART0SEL_Pos) |
#define | VSF_HW_USART1SEL_HXT (0x0UL << CLK_CLKSEL1_UART1SEL_Pos) |
#define | VSF_HW_USART1SEL_LXT (0x2UL << CLK_CLKSEL1_UART1SEL_Pos) |
#define | VSF_HW_USART1SEL_PLL (0x1UL << CLK_CLKSEL1_UART1SEL_Pos) |
#define | VSF_HW_USART1SEL_HIRC (0x3UL << CLK_CLKSEL1_UART1SEL_Pos) |
#define | VSF_HW_USART2SEL_HXT (0x0UL << CLK_CLKSEL3_UART2SEL_Pos) |
#define | VSF_HW_USART2SEL_LXT (0x2UL << CLK_CLKSEL3_UART2SEL_Pos) |
#define | VSF_HW_USART2SEL_PLL (0x1UL << CLK_CLKSEL3_UART2SEL_Pos) |
#define | VSF_HW_USART2SEL_HIRC (0x3UL << CLK_CLKSEL3_UART2SEL_Pos) |
#define | VSF_HW_USART3SEL_HXT (0x0UL << CLK_CLKSEL3_UART3SEL_Pos) |
#define | VSF_HW_USART3SEL_LXT (0x2UL << CLK_CLKSEL3_UART3SEL_Pos) |
#define | VSF_HW_USART3SEL_PLL (0x1UL << CLK_CLKSEL3_UART3SEL_Pos) |
#define | VSF_HW_USART3SEL_HIRC (0x3UL << CLK_CLKSEL3_UART3SEL_Pos) |
#define | VSF_HW_USART4SEL_HXT (0x0UL << CLK_CLKSEL3_UART4SEL_Pos) |
#define | VSF_HW_USART4SEL_LXT (0x2UL << CLK_CLKSEL3_UART4SEL_Pos) |
#define | VSF_HW_USART4SEL_PLL (0x1UL << CLK_CLKSEL3_UART4SEL_Pos) |
#define | VSF_HW_USART4SEL_HIRC (0x3UL << CLK_CLKSEL3_UART4SEL_Pos) |
#define | VSF_HW_USART5SEL_HXT (0x0UL << CLK_CLKSEL3_UART5SEL_Pos) |
#define | VSF_HW_USART5SEL_LXT (0x2UL << CLK_CLKSEL3_UART5SEL_Pos) |
#define | VSF_HW_USART5SEL_PLL (0x1UL << CLK_CLKSEL3_UART5SEL_Pos) |
#define | VSF_HW_USART5SEL_HIRC (0x3UL << CLK_CLKSEL3_UART5SEL_Pos) |
#define VSF_DEV_SWI_LIST 5, 45, 50, 69, 81, 83, 91, 94, 95 |
#define M480_PLL_FREQ_HZ (384 * 1000 * 1000) |
#define M480_HCLK_FREQ_HZ (192 * 1000 * 1000) |
#define M480_HXT_FREQ_HZ (12 * 1000 * 1000) |
#define M480_PCLK0_FREQ_HZ (96 * 1000 * 1000) |
#define M480_PCLK1_FREQ_HZ (96 * 1000 * 1000) |
#define M480_BIT_FIELD | ( | __name, | |
__bit_offset, | |||
__bit_len, | |||
__is_wprotect | |||
) | __name = (__bit_offset) | ((__bit_len) << 8) | ((__is_wprotect) << 13) |
#define M480_BIT_FIELD_GET_BITLEN | ( | __bf | ) | (((__bf) >> 8) & 0x1F) |
#define VSF_HAL_USE_GPIO ENABLED |
#define VSF_HW_GPIO_COUNT 4 |
#define VSF_HW_GPIO0_ADDRESS GPIOA_BASE |
#define VSF_HW_GPIO0_PIN_NUM 16 |
#define VSF_HW_GPIO1_ADDRESS GPIOB_BASE |
#define VSF_HW_GPIO1_PIN_NUM 16 |
#define VSF_HW_GPIO2_ADDRESS GPIOC_BASE |
#define VSF_HW_GPIO2_PIN_NUM 16 |
#define VSF_HW_GPIO3_ADDRESS GPIOD_BASE |
#define VSF_HW_GPIO3_PIN_NUM 16 |
#define VSF_HW_SPI_COUNT 0x02 |
#define VSF_HW_SPI0_DMA_TX_CHANNEL 0 |
#define VSF_HW_SPI0_DMA_RX_CHANNEL 1 |
#define VSF_HW_SPI1_DMA_TX_CHANNEL 2 |
#define VSF_HW_SPI1_DMA_RX_CHANNEL 3 |
#define VSF_HW_SPI2_DMA_TX_CHANNEL 4 |
#define VSF_HW_SPI2_DMA_RX_CHANNEL 5 |
#define VSF_HW_USB_HC_COUNT 1 |
#define VSF_HW_USB_HC_OHCI_COUNT 1 |
#define VSF_HW_USB_HC0_TYPE ohci |
#define VSF_HW_USB_HC0_IRQHandler OHCI_IRQHandler |
#define VSF_HW_USB_HC0_CONFIG |
#define VSF_HW_USB_DC_COUNT 1 |
#define VSF_HW_USB_DC_HS_COUNT 1 |
#define VSF_HW_USB_DC_FS_COUNT 0 |
#define VSF_HW_USB_DC0_TYPE usbd_hs |
#define VSF_HW_USB_DC0_IRQHandler USBD20_IRQHandler |
#define VSF_HW_USB_DC0_EP_NUM 14 |
#define VSF_HW_USB_DC0_CONFIG |
#define VSF_HW_USART_COUNT 5 |
#define VSF_HW_USART0_RST ((4ul << 24) | SYS_IPRST1_UART0RST_Pos) |
#define VSF_HW_USART1_RST ((4ul << 24) | SYS_IPRST1_UART1RST_Pos) |
#define VSF_HW_USART2_RST ((4ul << 24) | SYS_IPRST1_UART2RST_Pos) |
#define VSF_HW_USART3_RST ((4ul << 24) | SYS_IPRST1_UART3RST_Pos) |
#define VSF_HW_USART4_RST ((4ul << 24) | SYS_IPRST1_UART4RST_Pos) |
#define VSF_HW_USART5_RST ((4ul << 24) | SYS_IPRST1_UART5RST_Pos) |
#define VSF_HW_USART0_MODULE ((1ul << 30) | (1ul << 28) | (0x3ul << 25) | (24ul << 20) | (0ul << 18) | (0xFul << 10) | (8ul << 5) |(16ul << 0)) |
#define VSF_HW_USART1_MODULE ((1ul << 30) | (1ul << 28) | (0x3ul << 25) | (26ul << 20) | (0ul << 18) | (0xFul << 10) | (12ul << 5) |(17ul << 0)) |
#define VSF_HW_USART2_MODULE ((1ul << 30) | (3ul << 28) | (0x3ul << 25) | (24ul << 20) | (3ul << 18) | (0xFul << 10) | (0ul << 5) |(18ul << 0)) |
#define VSF_HW_USART3_MODULE ((1ul << 30) | (3ul << 28) | (0x3ul << 25) | (26ul << 20) | (3ul << 18) | (0xFul << 10) | (4ul << 5) |(19ul << 0)) |
#define VSF_HW_USART4_MODULE ((1ul << 30) | (3ul << 28) | (0x3ul << 25) | (28ul << 20) | (3ul << 18) | (0xFul << 10) | (8ul << 5) |(20ul << 0)) |
#define VSF_HW_USART5_MODULE ((1ul << 30) | (3ul << 28) | (0x3ul << 25) | (30ul << 20) | (3ul << 18) | (0xFul << 10) | (12ul << 5) |(21ul << 0)) |
#define VSF_HW_USART0SEL_HXT (0x0UL << CLK_CLKSEL1_UART0SEL_Pos) |
#define VSF_HW_USART0SEL_LXT (0x2UL << CLK_CLKSEL1_UART0SEL_Pos) |
#define VSF_HW_USART0SEL_PLL (0x1UL << CLK_CLKSEL1_UART0SEL_Pos) |
#define VSF_HW_USART0SEL_HIRC (0x3UL << CLK_CLKSEL1_UART0SEL_Pos) |
#define VSF_HW_USART1SEL_HXT (0x0UL << CLK_CLKSEL1_UART1SEL_Pos) |
#define VSF_HW_USART1SEL_LXT (0x2UL << CLK_CLKSEL1_UART1SEL_Pos) |
#define VSF_HW_USART1SEL_PLL (0x1UL << CLK_CLKSEL1_UART1SEL_Pos) |
#define VSF_HW_USART1SEL_HIRC (0x3UL << CLK_CLKSEL1_UART1SEL_Pos) |
#define VSF_HW_USART2SEL_HXT (0x0UL << CLK_CLKSEL3_UART2SEL_Pos) |
#define VSF_HW_USART2SEL_LXT (0x2UL << CLK_CLKSEL3_UART2SEL_Pos) |
#define VSF_HW_USART2SEL_PLL (0x1UL << CLK_CLKSEL3_UART2SEL_Pos) |
#define VSF_HW_USART2SEL_HIRC (0x3UL << CLK_CLKSEL3_UART2SEL_Pos) |
#define VSF_HW_USART3SEL_HXT (0x0UL << CLK_CLKSEL3_UART3SEL_Pos) |
#define VSF_HW_USART3SEL_LXT (0x2UL << CLK_CLKSEL3_UART3SEL_Pos) |
#define VSF_HW_USART3SEL_PLL (0x1UL << CLK_CLKSEL3_UART3SEL_Pos) |
#define VSF_HW_USART3SEL_HIRC (0x3UL << CLK_CLKSEL3_UART3SEL_Pos) |
#define VSF_HW_USART4SEL_HXT (0x0UL << CLK_CLKSEL3_UART4SEL_Pos) |
#define VSF_HW_USART4SEL_LXT (0x2UL << CLK_CLKSEL3_UART4SEL_Pos) |
#define VSF_HW_USART4SEL_PLL (0x1UL << CLK_CLKSEL3_UART4SEL_Pos) |
#define VSF_HW_USART4SEL_HIRC (0x3UL << CLK_CLKSEL3_UART4SEL_Pos) |
#define VSF_HW_USART5SEL_HXT (0x0UL << CLK_CLKSEL3_UART5SEL_Pos) |
#define VSF_HW_USART5SEL_LXT (0x2UL << CLK_CLKSEL3_UART5SEL_Pos) |
#define VSF_HW_USART5SEL_PLL (0x1UL << CLK_CLKSEL3_UART5SEL_Pos) |
#define VSF_HW_USART5SEL_HIRC (0x3UL << CLK_CLKSEL3_UART5SEL_Pos) |