VSF Documented
Macros
systick.h File Reference
#include "hal/vsf_hal_cfg.h"
#include "./systick_internal.h"

Go to the source code of this file.

Macros

#define vsf_systick_cfg(...)
 

Variables

systick struct
void(* Enable )(void)
 enable
 
bool(* Disable )(void)
 disable
 
bool(* IsMatch )(void)
 check whether a overflow happened
 
u32_property_t Counter
 get or set the counter
 
void(* Reset )(void)
 reset the counter
 
systick_reg_t *const RegPage
 register page
 

Macro Definition Documentation

◆ vsf_systick_cfg

#define vsf_systick_cfg (   ...)
Value:
do { \
systick_cfg_t cfg = {__VA_ARGS__}; \
vsf_systick_init(&cfg); \
} while(false)
Definition systick_internal.h:56
Note
Example of systick configuration using systick_cfg()

systick_cfg ( ENABLE_SYSTICK | //!< enable systick immediately SYSTICK_SOURCE_SYSCLK | //!< using system clock as clock source ENABLE_SYSTICK_INTERRUPT, //!< enable exception generation (VSF_GET_MAIN_CLK() / frequency) //!< generate desired frequency );

Variable Documentation

◆ Enable

void(* Enable) (void) ( void  )

enable

◆ Disable

bool(* Disable) (void) ( void  )

disable

◆ IsMatch

bool(* IsMatch) (void) ( void  )

check whether a overflow happened

◆ Counter

u32_property_t Counter

get or set the counter

◆ Reset

void(* Reset) (void) ( void  )

reset the counter

◆ RegPage

systick_reg_t* const RegPage

register page