VSF Documented
Macros | Functions
systick_internal.c File Reference
#include "hal/vsf_hal_cfg.h"
#include "utilities/vsf_utilities.h"
#include "./i_io_systick.h"
#include "hal/arch/vsf_arch.h"

Macros

#define __SYSTICK_ATOM_CODE   vsf_interrupt_safe_simple
 

Functions

bool vsf_systick_init (systick_cfg_t *pCfg)
 init SysTick Timer !
 
uint32_t vsf_systick_get_count (void)
 get count value !
 
bool vsf_systick_set_reload (uint32_t value)
 set reload value !
 
void vsf_systick_clear_count (void)
 clear count value !
 
void vsf_systick_enable (void)
 enable !
 
bool vsf_systick_disable (void)
 enable !
 
bool vsf_systick_is_match (void)
 enable !
 
void vsf_systick_int_enable (void)
 enable !
 
void vsf_systick_int_disable (void)
 enable !
 

Macro Definition Documentation

◆ __SYSTICK_ATOM_CODE

#define __SYSTICK_ATOM_CODE   vsf_interrupt_safe_simple
Note
By default, the driver tries to make all APIs thread-safe, in the ! case when you want to disable it, please use following macro to ! disable it: ! ! #define SYSTICK_ATOM_CODE(...) \ ! for (int VSF_MCONNECT2(_, LINE) =1;VSF_MCONNECT2(___, LINE)–;) ! ! ! NOTE: This macro should be defined in app_cfg.h or vsf_cfg.h

Function Documentation

◆ vsf_systick_init()

bool vsf_systick_init ( systick_cfg_t cfg_ptr)

init SysTick Timer !

Parameters
void!
Return values
true: succeed !
falsefailed

check the input

◆ vsf_systick_get_count()

uint32_t vsf_systick_get_count ( void  )

get count value !

Parameters
void!
Return values
returngeh time count value

◆ vsf_systick_set_reload()

bool vsf_systick_set_reload ( uint32_t  value)

set reload value !

Parameters
timecount value !
Return values
whetheraccess successful or not
Parameters
timecount value !
Return values
none

◆ vsf_systick_clear_count()

void vsf_systick_clear_count ( void  )

clear count value !

Parameters
none!
Return values
none

◆ vsf_systick_enable()

void vsf_systick_enable ( void  )

enable !

Parameters
void!
Return values
bool
Parameters
void!
Return values
none

◆ vsf_systick_disable()

bool vsf_systick_disable ( void  )

enable !

Parameters
void!
Return values
bool

read to clear COUNTFLAG

◆ vsf_systick_is_match()

bool vsf_systick_is_match ( void  )

enable !

check compare match event !

Parameters
void!
Return values
bool
Parameters
none!
Return values
truecompare matched, the flag has been cleared automatically !
falseno compare match event

◆ vsf_systick_int_enable()

void vsf_systick_int_enable ( void  )

enable !

Parameters
void!
Return values
none

◆ vsf_systick_int_disable()

void vsf_systick_int_disable ( void  )

enable !

Parameters
void!
Return values
bool