VSF Documented
vsf_freertos.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2026 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_FREERTOS_INTERNAL_H__
19#define __VSF_FREERTOS_INTERNAL_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "kernel/vsf_kernel.h"
24#include "./vsf_freertos_cfg.h"
25
26#if VSF_USE_FREERTOS == ENABLED
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32/*============================ MACROS ========================================*/
33/*============================ TYPES =========================================*/
34
35typedef struct vsf_freertos_t {
38
39// The task control block used by task / notify ports is now
40// StaticTask_t in include/task.h (vsf_class-based). The vsf_thread_t
41// remains the first private member so that (vsf_thread_t *) and
42// (StaticTask_t *) are bit-wise interchangeable -- xTaskGetCurrentTaskHandle
43// returns vsf_thread_get_cur() and ports cast it back.
44
45/*============================ GLOBAL VARIABLES ==============================*/
46/*============================ PROTOTYPES ====================================*/
47
48// Sub-system lifecycle. Called from user init (once).
49extern void vsf_freertos_init(void);
50
51#ifdef __cplusplus
52}
53#endif
54
55#endif // VSF_USE_FREERTOS
56#endif // __VSF_FREERTOS_INTERNAL_H__
Definition vsf_freertos.h:35
bool is_inited
Definition vsf_freertos.h:36
void vsf_freertos_init(void)
Definition vsf_freertos.c:36
Generated from commit: vsfteam/vsf@015f4d1