VSF Documented
vsf_kernel.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 __VSF_KERNEL_H__
19#define __VSF_KERNEL_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "./vsf_kernel_cfg.h"
24
25#if VSF_USE_KERNEL == ENABLED
26
27#include "./vsf_eda.h"
28#include "./vsf_evtq.h"
30#include "./vsf_os.h"
31#include "./shell/vsf_shell.h"
32#include "./task/vsf_task.h"
33#include "./task/vsf_thread.h"
34
35/*============================ MACROS ========================================*/
36/*============================ MACROFIED FUNCTIONS ===========================*/
37/*============================ TYPES =========================================*/
38
39#if (VSF_USE_APPLET == ENABLED || VSF_LINUX_USE_APPLET == ENABLED) && VSF_APPLET_USE_KERNEL == ENABLED
40// TODO: add more kernel APIs
41typedef struct vsf_kernel_vplt_t {
43
44 // eda
49
50 // thread
54#endif
55
56/*============================ GLOBAL VARIABLES ==============================*/
57/*============================ LOCAL VARIABLES ===============================*/
58/*============================ PROTOTYPES ====================================*/
59
60#endif
61#endif
62/* EOF */
Definition vsf_kernel.h:41
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(vsf_thread_wait_for_msg)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(vsf_eda_get_cur)
vsf_vplt_info_t info
Definition vsf_kernel.h:42
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(vsf_eda_post_evt)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(vsf_eda_post_evt_msg)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(vsf_eda_post_msg)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(vsf_thread_wait_for_evt)
Definition vsf_cfg.h:95
vsf_err_t vsf_eda_post_evt(vsf_eda_t *pthis, vsf_evt_t evt)
Definition vsf_eda.c:929
vsf_err_t vsf_eda_post_evt_msg(vsf_eda_t *pthis, vsf_evt_t evt, void *msg)
Definition vsf_eda.c:963
vsf_eda_t * vsf_eda_get_cur(void)
Definition vsf_eda.c:416
vsf_err_t vsf_eda_post_msg(vsf_eda_t *pthis, void *msg)
Definition vsf_eda.c:955
uintptr_t vsf_thread_wait_for_msg(void)
Definition vsf_thread.c:255
void vsf_thread_wait_for_evt(vsf_evt_t evt)
Definition vsf_thread.c:237
Generated from commit: vsfteam/vsf@1c19fdc