VSF Documented
vsf_arch.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/*============================ INCLUDES ======================================*/
19
20// TODO: change to vsf_arch_cfg.h
21#include "hal/vsf_hal_cfg.h"
22
23#ifdef __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
24
25// __VSF_HEADER_ONLY_SHOW_ARCH_INFO__ is defined outside, only extract arch info from hal
26#include "hal/vsf_hal.h"
27//__VSF_HEADER_ONLY_SHOW_ARCH_INFO__ will be undefined in vsf_hal.h
28
29#else // __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
30
31#ifndef __VSF_ARCH_H__
32#define __VSF_ARCH_H__
33
34# define __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
35# include "hal/vsf_hal.h"
36//__VSF_HEADER_ONLY_SHOW_ARCH_INFO__ will be undefined in vsf_hal.h
37
38# include "vsf_arch_abstraction.h"
39
40# ifdef __cplusplus
41extern "C" {
42# endif
43
44/*============================ MACROS ========================================*/
45/*============================ MACROFIED FUNCTIONS ===========================*/
46/*============================ TYPES =========================================*/
47/*============================ GLOBAL VARIABLES ==============================*/
48/*============================ LOCAL VARIABLES ===============================*/
49/*============================ PROTOTYPES ====================================*/
50
51#ifdef __VSF_CPP__
52extern void vsf_arch_cpp_startup(void);
53#endif
54
60extern bool vsf_arch_init(void);
61
62extern vsf_err_t vsf_systimer_init(void);
63
64# ifdef __cplusplus
65}
66# endif
67
68#endif // __VSF_ARCH_H__
69#endif // __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
70/* EOF */
vsf_err_t
Definition __type.h:42
vsf_err_t vsf_systimer_init(void)
initialise SysTick to generate a system timer !
Definition linux_generic.c:365
bool vsf_arch_init(void)
Definition vsf_arch_abstraction.c:1078