VSF Documented
esp_vfs_semihost.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/*
19 * Clean-room re-implementation of ESP-IDF public API "esp_vfs_semihost.h".
20 *
21 * VSF explicitly disables ARM semihosting project-wide
22 * (__use_no_semihosting / #pragma import(__use_no_semihosting)).
23 * Console I/O uses vsf_stream_t instead. All API entries return
24 * ESP_ERR_NOT_SUPPORTED.
25 *
26 * Baseline: ESP-IDF v5.1 public API.
27 */
28
29#ifndef __VSF_ESPIDF_ESP_VFS_SEMIHOST_H__
30#define __VSF_ESPIDF_ESP_VFS_SEMIHOST_H__
31
32#include "esp_err.h"
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38esp_err_t esp_vfs_semihost_register(const char *base_path);
39esp_err_t esp_vfs_semihost_unregister(const char *base_path);
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif // __VSF_ESPIDF_ESP_VFS_SEMIHOST_H__
int esp_err_t
Definition esp_err.h:41
esp_err_t esp_vfs_semihost_register(const char *base_path)
Definition esp_vfs_semihost_port.c:28
esp_err_t esp_vfs_semihost_unregister(const char *base_path)
Definition esp_vfs_semihost_port.c:34
Generated from commit: vsfteam/vsf@c3767bf