VSF Documented
Functions
driver.c File Reference
#include "hal/vsf_hal_cfg.h"
#include "./device.h"
#include "hal/driver/common/swi/vsf_swi_template.h"
#include "hpm_common.h"
#include "hpm_soc.h"
#include "hpm_l1c_drv.h"
#include "hpm_clock_drv.h"
#include "hpm_sysctl_drv.h"
#include "hpm_mchtmr_drv.h"

Functions

void vsf_systimer_prio_set (vsf_arch_prio_t priority)
 
vsf_err_t vsf_systimer_low_level_init (void)
 initialise systimer (current value set to 0) without enable it
 
void vsf_systimer_low_level_enable (void)
 only enable systimer without clearing any flags
 
vsf_systimer_tick_t vsf_systimer_low_level_get_current (void)
 get current value of timer
 
void vsf_systimer_low_level_set_match (vsf_systimer_tick_t match)
 set match value, will be triggered when current >= match, vsf_systimer_match_evthandler will be called if triggered.
 
unsigned int __hpm_systimer_get_frequency (void)
 
vsf_arch_prio_t vsf_set_base_priority (vsf_arch_prio_t priority)
 
void reset_handler (void)
 
bool vsf_driver_init (void)
 common hal drivers
 

Function Documentation

◆ vsf_systimer_prio_set()

void vsf_systimer_prio_set ( vsf_arch_prio_t  priority)

◆ vsf_systimer_low_level_init()

vsf_err_t vsf_systimer_low_level_init ( void  )

initialise systimer (current value set to 0) without enable it

◆ vsf_systimer_low_level_enable()

void vsf_systimer_low_level_enable ( void  )

only enable systimer without clearing any flags

◆ vsf_systimer_low_level_get_current()

vsf_systimer_tick_t vsf_systimer_low_level_get_current ( void  )

get current value of timer

◆ vsf_systimer_low_level_set_match()

void vsf_systimer_low_level_set_match ( vsf_systimer_tick_t  match)

set match value, will be triggered when current >= match, vsf_systimer_match_evthandler will be called if triggered.

◆ __hpm_systimer_get_frequency()

unsigned int __hpm_systimer_get_frequency ( void  )

◆ vsf_set_base_priority()

vsf_arch_prio_t vsf_set_base_priority ( vsf_arch_prio_t  priority)

◆ reset_handler()

void reset_handler ( 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;