diff --git a/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_DYNAMIC/cfg/vfsconf.h b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_DYNAMIC/cfg/vfsconf.h new file mode 100644 index 000000000..aee43bf70 --- /dev/null +++ b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_DYNAMIC/cfg/vfsconf.h @@ -0,0 +1,162 @@ +/* + ChibiOS - Copyright (C) 2006..2020 Giovanni Di Sirio + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +/** + * @file templates/vfsconf.h + * @brief VFS configuration header. + * + * @addtogroup VFS_CONF + * @{ + */ + +#ifndef VFSCONF_H +#define VFSCONF_H + +#define _CHIBIOS_VFS_CONF_ +#define _CHIBIOS_VFS_CONF_VER_1_0_ + +/*===========================================================================*/ +/** + * @name VFS general settings + * @{ + */ +/*===========================================================================*/ + +/** + * @brief Maximum filename length. + */ +#if !defined(VFS_CFG_NAMELEN_MAX) || defined(__DOXYGEN__) +#define VFS_CFG_NAMELEN_MAX 15 +#endif + +/** + * @brief Maximum paths length. + */ +#if !defined(VFS_CFG_PATHLEN_MAX) || defined(__DOXYGEN__) +#define VFS_CFG_PATHLEN_MAX 1023 +#endif + +/** + * @brief Number of shared path buffers. + */ +#if !defined(VFS_CFG_PATHBUFS_NUM) || defined(__DOXYGEN__) +#define VFS_CFG_PATHBUFS_NUM 1 +#endif + +/** @} */ + +/*===========================================================================*/ +/** + * @name VFS drivers + * @{ + */ +/*===========================================================================*/ + +/** + * @brief Enables the VFS Overlay Driver. + */ +#if !defined(VFS_CFG_ENABLE_DRV_OVERLAY) || defined(__DOXYGEN__) +#define VFS_CFG_ENABLE_DRV_OVERLAY TRUE +#endif + +/** + * @brief Enables the VFS Streams Driver. + */ +#if !defined(VFS_CFG_ENABLE_DRV_STREAMS) || defined(__DOXYGEN__) +#define VFS_CFG_ENABLE_DRV_STREAMS TRUE +#endif + +/** + * @brief Enables the VFS FatFS Driver. + */ +#if !defined(VFS_CFG_ENABLE_DRV_FATFS) || defined(__DOXYGEN__) +#define VFS_CFG_ENABLE_DRV_FATFS FALSE +#endif + +/** @} */ + +/*===========================================================================*/ +/** + * @name Overlay driver settings + * @{ + */ +/*===========================================================================*/ + +/** + * @brief Maximum number of overlay directories. + */ +#if !defined(DRV_CFG_OVERLAY_DRV_MAX) || defined(__DOXYGEN__) +#define DRV_CFG_OVERLAY_DRV_MAX 2 +#endif + +/** + * @brief Number of directory nodes pre-allocated in the pool. + */ +#if !defined(DRV_CFG_OVERLAY_NODES_NUM) || defined(__DOXYGEN__) +#define DRV_CFG_OVERLAY_DIR_NODES_NUM 1 +#endif + +/** @} */ + +/*===========================================================================*/ +/** + * @name Streams driver settings + * @{ + */ +/*===========================================================================*/ + +/** + * @brief Number of directory nodes pre-allocated in the pool. + */ +#if !defined(DRV_CFG_STREAMS_DIR_NODES_NUM) || defined(__DOXYGEN__) +#define DRV_CFG_STREAMS_DIR_NODES_NUM 1 +#endif + +/** + * @brief Number of file nodes pre-allocated in the pool. + */ +#if !defined(DRV_CFG_STREAMS_FILE_NODES_NUM) || defined(__DOXYGEN__) +#define DRV_CFG_STREAMS_FILE_NODES_NUM 2 +#endif + +/** @} */ + +/*===========================================================================*/ +/** + * @name FatFS driver settings + * @{ + */ +/*===========================================================================*/ + +/** + * @brief Number of directory nodes pre-allocated in the pool. + */ +#if !defined(DRV_CFG_FATFS_DIR_NODES_NUM) || defined(__DOXYGEN__) +#define DRV_CFG_FATFS_DIR_NODES_NUM 1 +#endif + +/** + * @brief Number of file nodes pre-allocated in the pool. + */ +#if !defined(DRV_CFG_FATFS_FILE_NODES_NUM) || defined(__DOXYGEN__) +#define DRV_CFG_FATFS_FILE_NODES_NUM 2 +#endif + +/** @} */ + +#endif /* VFSCONF_H */ + +/** @} */ diff --git a/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/cfg/vfsconf.h b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/cfg/vfsconf.h new file mode 100644 index 000000000..aee43bf70 --- /dev/null +++ b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/cfg/vfsconf.h @@ -0,0 +1,162 @@ +/* + ChibiOS - Copyright (C) 2006..2020 Giovanni Di Sirio + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +/** + * @file templates/vfsconf.h + * @brief VFS configuration header. + * + * @addtogroup VFS_CONF + * @{ + */ + +#ifndef VFSCONF_H +#define VFSCONF_H + +#define _CHIBIOS_VFS_CONF_ +#define _CHIBIOS_VFS_CONF_VER_1_0_ + +/*===========================================================================*/ +/** + * @name VFS general settings + * @{ + */ +/*===========================================================================*/ + +/** + * @brief Maximum filename length. + */ +#if !defined(VFS_CFG_NAMELEN_MAX) || defined(__DOXYGEN__) +#define VFS_CFG_NAMELEN_MAX 15 +#endif + +/** + * @brief Maximum paths length. + */ +#if !defined(VFS_CFG_PATHLEN_MAX) || defined(__DOXYGEN__) +#define VFS_CFG_PATHLEN_MAX 1023 +#endif + +/** + * @brief Number of shared path buffers. + */ +#if !defined(VFS_CFG_PATHBUFS_NUM) || defined(__DOXYGEN__) +#define VFS_CFG_PATHBUFS_NUM 1 +#endif + +/** @} */ + +/*===========================================================================*/ +/** + * @name VFS drivers + * @{ + */ +/*===========================================================================*/ + +/** + * @brief Enables the VFS Overlay Driver. + */ +#if !defined(VFS_CFG_ENABLE_DRV_OVERLAY) || defined(__DOXYGEN__) +#define VFS_CFG_ENABLE_DRV_OVERLAY TRUE +#endif + +/** + * @brief Enables the VFS Streams Driver. + */ +#if !defined(VFS_CFG_ENABLE_DRV_STREAMS) || defined(__DOXYGEN__) +#define VFS_CFG_ENABLE_DRV_STREAMS TRUE +#endif + +/** + * @brief Enables the VFS FatFS Driver. + */ +#if !defined(VFS_CFG_ENABLE_DRV_FATFS) || defined(__DOXYGEN__) +#define VFS_CFG_ENABLE_DRV_FATFS FALSE +#endif + +/** @} */ + +/*===========================================================================*/ +/** + * @name Overlay driver settings + * @{ + */ +/*===========================================================================*/ + +/** + * @brief Maximum number of overlay directories. + */ +#if !defined(DRV_CFG_OVERLAY_DRV_MAX) || defined(__DOXYGEN__) +#define DRV_CFG_OVERLAY_DRV_MAX 2 +#endif + +/** + * @brief Number of directory nodes pre-allocated in the pool. + */ +#if !defined(DRV_CFG_OVERLAY_NODES_NUM) || defined(__DOXYGEN__) +#define DRV_CFG_OVERLAY_DIR_NODES_NUM 1 +#endif + +/** @} */ + +/*===========================================================================*/ +/** + * @name Streams driver settings + * @{ + */ +/*===========================================================================*/ + +/** + * @brief Number of directory nodes pre-allocated in the pool. + */ +#if !defined(DRV_CFG_STREAMS_DIR_NODES_NUM) || defined(__DOXYGEN__) +#define DRV_CFG_STREAMS_DIR_NODES_NUM 1 +#endif + +/** + * @brief Number of file nodes pre-allocated in the pool. + */ +#if !defined(DRV_CFG_STREAMS_FILE_NODES_NUM) || defined(__DOXYGEN__) +#define DRV_CFG_STREAMS_FILE_NODES_NUM 2 +#endif + +/** @} */ + +/*===========================================================================*/ +/** + * @name FatFS driver settings + * @{ + */ +/*===========================================================================*/ + +/** + * @brief Number of directory nodes pre-allocated in the pool. + */ +#if !defined(DRV_CFG_FATFS_DIR_NODES_NUM) || defined(__DOXYGEN__) +#define DRV_CFG_FATFS_DIR_NODES_NUM 1 +#endif + +/** + * @brief Number of file nodes pre-allocated in the pool. + */ +#if !defined(DRV_CFG_FATFS_FILE_NODES_NUM) || defined(__DOXYGEN__) +#define DRV_CFG_FATFS_FILE_NODES_NUM 2 +#endif + +/** @} */ + +#endif /* VFSCONF_H */ + +/** @} */