VSF Documented
systick_internal.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __SYS_TICK_INTERNAL_H__
19#define __SYS_TICK_INTERNAL_H__
20
21/*============================ INCLUDES ======================================*/
22#include "hal/vsf_hal_cfg.h"
23
29#include "./i_io_systick.h"
30
31/*============================ MACROS ========================================*/
32/*============================ MACROFIED FUNCTIONS ===========================*/
33/*============================ TYPES =========================================*/
36typedef enum {
41
46
53
56typedef struct {
61
62
63/*============================ GLOBAL VARIABLES ==============================*/
64/*============================ LOCAL VARIABLES ===============================*/
65/*============================ PROTOTYPES ====================================*/
66
69
75extern bool vsf_systick_init(systick_cfg_t *pCfg);
76
82
88
93extern void vsf_systick_clear_count(void);
98extern void vsf_systick_enable(void);
99
104extern bool vsf_systick_disable(void);
105
106extern void vsf_systick_int_enable(void);
107extern void vsf_systick_int_disable(void);
108
113extern bool vsf_systick_is_match(void);
114
116
117
118#endif /* end of __SYS_TICK_H__ */
unsigned uint32_t
Definition stdint.h:9
unsigned char uint8_t
Definition stdint.h:5
Definition systick_internal.h:56
uint8_t mode
config ward
Definition systick_internal.h:57
uint32_t reload_value
Match value.
Definition systick_internal.h:58
void vsf_systick_int_enable(void)
enable !
Definition systick_internal.c:177
void vsf_systick_int_disable(void)
enable !
Definition systick_internal.c:188
uint32_t vsf_systick_get_count(void)
get count value !
Definition systick_internal.c:211
em_systick_cfg_mode_t
Definition systick_internal.h:36
@ DISABLE_SYSTICK_INTERRUPT
Enable the SysTick interrupt.
Definition systick_internal.h:43
@ DISABLE_SYSTICK
Enable the SysTick.
Definition systick_internal.h:38
@ SYSTICK_SOURCE_SYSCLK
Select the system clock as SysTick source.
Definition systick_internal.h:50
@ SYSTICK_SOURCE_REFERCLK
Select the reference clock as SysTick source.
Definition systick_internal.h:48
@ ENABLE_SYSTICK
Enable the SysTick.
Definition systick_internal.h:40
@ ENABLE_SYSTICK_INTERRUPT
Enable the SysTick interrupt.
Definition systick_internal.h:45
void vsf_systick_clear_count(void)
clear count value !
Definition systick_internal.c:230
bool vsf_systick_is_match(void)
enable !
Definition systick_internal.c:201
bool vsf_systick_set_reload(uint32_t value)
set reload value !
Definition systick_internal.c:220
bool vsf_systick_disable(void)
enable !
Definition systick_internal.c:160
void vsf_systick_enable(void)
enable !
Definition systick_internal.c:149
bool vsf_systick_init(systick_cfg_t *pCfg)
init SysTick Timer !
Definition systick_internal.c:129
vk_av_control_value_t value
Definition vsf_audio.h:171