VSF Documented
Data Structures | Macros | Typedefs | Functions | Variables
driver.c File Reference
#include "hal/vsf_hal_cfg.h"
#include "./device.h"
#include "./driver.h"

Data Structures

struct  vsf_dma_t
 

Macros

#define PLL_SRC   CLKREF_12MIRC
 
#define MAINCLK_SRC   CLKSRC_PLL
 
#define MAINCLK_FREQ_HZ   __SYSTEM_FREQ
 

Typedefs

typedef struct vsf_dma_t vsf_dma_t
 

Functions

void DMA_IRQHandler (void)
 
void __vsf_dma_channel_start (__dma_channel_t *channel, uint_fast64_t channel_cfg)
 
void __vsf_dma_channel_stop (__dma_channel_t *channel)
 
void __vsf_dma_free_channel (__dma_channel_t *channel)
 
__dma_channel_t__vsf_dma_alloc_channel (__dma_trans_t *trans, uint_fast8_t trans_num)
 
void vsf_arch_sleep (uint32_t mode)
 
int __low_level_init (void)
 
bool vsf_driver_init (void)
 common hal drivers
 

Variables

const uint16_t __dma_max_trans_size [DMA_CHANNEL_COUNT]
 

Macro Definition Documentation

◆ PLL_SRC

#define PLL_SRC   CLKREF_12MIRC

◆ MAINCLK_SRC

#define MAINCLK_SRC   CLKSRC_PLL

◆ MAINCLK_FREQ_HZ

#define MAINCLK_FREQ_HZ   __SYSTEM_FREQ

Typedef Documentation

◆ vsf_dma_t

typedef struct vsf_dma_t vsf_dma_t

Function Documentation

◆ DMA_IRQHandler()

void DMA_IRQHandler ( void  )

◆ __vsf_dma_channel_start()

void __vsf_dma_channel_start ( __dma_channel_t channel,
uint_fast64_t  channel_cfg 
)

◆ __vsf_dma_channel_stop()

void __vsf_dma_channel_stop ( __dma_channel_t channel)

◆ __vsf_dma_free_channel()

void __vsf_dma_free_channel ( __dma_channel_t channel)

◆ __vsf_dma_alloc_channel()

__dma_channel_t * __vsf_dma_alloc_channel ( __dma_trans_t trans,
uint_fast8_t  trans_num 
)

◆ vsf_arch_sleep()

void vsf_arch_sleep ( uint32_t  mode)

◆ __low_level_init()

int __low_level_init ( void  )

◆ vsf_driver_init()

bool vsf_driver_init ( void  )

common hal drivers

Note
initialize device driver
Parameters
none
Return values
trueinitialization succeeded.
falseinitialization failed

initialise interrupt controller;

\tagpll_init[]

\endpll_init[]

\tag::configure_clk_sys[]

\end::configure_clk_sys[]

Variable Documentation

◆ __dma_max_trans_size

const uint16_t __dma_max_trans_size[DMA_CHANNEL_COUNT]
Initial value:
= {
}
#define DMA_CHANNEL_MAX_TRANS_SIZES
Definition device.h:65