feat: added PicoW_Sensor code template
Credits to @ext-erich.styger that provided the template
This commit is contained in:
committed by
Sylvan Arnold
parent
b2e9eab44e
commit
6cd510e749
80
TSM_PicoW_Sensor/McuLib/minIni/McuMinINIconfig.h
Normal file
80
TSM_PicoW_Sensor/McuLib/minIni/McuMinINIconfig.h
Normal file
@@ -0,0 +1,80 @@
|
||||
/**
|
||||
* \file
|
||||
* \brief Configuration header file for MinINI
|
||||
* Copyright (c) 2020-2021, Erich Styger
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*
|
||||
* This header file is used to configure settings of the MinINI module.
|
||||
*/
|
||||
#ifndef __McuMinINI_CONFIG_H
|
||||
#define __McuMinINI_CONFIG_H
|
||||
|
||||
#define McuMinINI_CONFIG_FS_TYPE_GENERIC (0) /* Generic File System */
|
||||
#define McuMinINI_CONFIG_FS_TYPE_FAT_FS (1) /* FatFS File System */
|
||||
#define McuMinINI_CONFIG_FS_TYPE_TINY_FS (2) /* TinyFS File System */
|
||||
#define McuMinINI_CONFIG_FS_TYPE_FLASH_FS (3) /* Flash Page System */
|
||||
#define McuMinINI_CONFIG_FS_TYPE_LITTLE_FS (4) /* LittleFS File System */
|
||||
|
||||
#ifndef McuMinINI_CONFIG_FS
|
||||
#define McuMinINI_CONFIG_FS (McuMinINI_CONFIG_FS_TYPE_GENERIC)
|
||||
/*!< File System integration used, one of McuMinINI_CONFIG_FS_TYPE_GENERIC, McuMinINI_CONFIG_FS_TYPE_FAT_FS, McuMinINI_CONFIG_FS_TYPE_TINY_FS */
|
||||
#endif
|
||||
|
||||
#define PORTABLE_STRNICMP
|
||||
|
||||
#ifndef McuMinINI_CONFIG_USE_REAL
|
||||
#define McuMinINI_CONFIG_USE_REAL (0)
|
||||
/*!< if ini file handling includes handling of floating point data types */
|
||||
#endif
|
||||
|
||||
#if McuMinINI_CONFIG_USE_REAL
|
||||
#define INI_REAL double
|
||||
#else
|
||||
//#define INI_REAL double
|
||||
#endif
|
||||
|
||||
#ifndef McuMinINI_CONFIG_READ_ONLY
|
||||
#define McuMinINI_CONFIG_READ_ONLY (0)
|
||||
#endif
|
||||
/*!< if ini file handling is read-only */
|
||||
|
||||
#ifndef McuMinINI_CONFIG_BUFFER_SIZE
|
||||
#define McuMinINI_CONFIG_BUFFER_SIZE (64)
|
||||
#endif
|
||||
/*!< maximum line length, maximum path length, buffer is allocated on the stack! */
|
||||
|
||||
#ifndef NDEBUG
|
||||
#define NDEBUG
|
||||
/*!< comment above define to turn on assertions */
|
||||
#endif
|
||||
|
||||
#if McuMinINI_CONFIG_FS==McuMinINI_CONFIG_FS_TYPE_FLASH_FS
|
||||
/* flash memory settings */
|
||||
#ifndef McuMinINI_CONFIG_FLASH_NVM_NOF_BLOCKS
|
||||
#define McuMinINI_CONFIG_FLASH_NVM_NOF_BLOCKS (1)
|
||||
/*!< number of flash blocks */
|
||||
#endif
|
||||
|
||||
#ifndef McuMinINI_CONFIG_FLASH_NVM_BLOCK_SIZE
|
||||
#define McuMinINI_CONFIG_FLASH_NVM_BLOCK_SIZE (0x800)
|
||||
/*!< must match FLASH_GetProperty(&s_flashDriver, kFLASH_PropertyPflash0SectorSize, &pflashSectorSize).
|
||||
For LPC55Sxx it is 0x200, for LPC845 it is 0x400, for K22FN/K02FN it is 0x800 */
|
||||
#endif
|
||||
|
||||
#ifndef McuMinINI_CONFIG_FLASH_NVM_ADDR_START
|
||||
#define McuMinINI_CONFIG_FLASH_NVM_ADDR_START ((0+512*1024)-(McuMinINI_CONFIG_FLASH_NVM_NOF_BLOCKS*McuMinINI_CONFIG_FLASH_NVM_BLOCK_SIZE))
|
||||
/*!< last block in FLASH, start address of data in flash */
|
||||
#endif
|
||||
|
||||
#ifndef McuMinINI_CONFIG_FLASH_NVM_MAX_DATA_SIZE
|
||||
#define McuMinINI_CONFIG_FLASH_NVM_MAX_DATA_SIZE (128)
|
||||
/*!< size for the data, less than McuMinINI_CONFIG_FLASH_NVM_BLOCK_SIZE to save memory. For LPC55Sxx it must be multiple of 0x200! */
|
||||
#endif
|
||||
#endif /* McuMinINI_CONFIG_FS_TYPE_FLASH_FS */
|
||||
|
||||
#if !defined(McuMinINI_CONFIG_PARSE_COMMAND_ENABLED)
|
||||
#define McuMinINI_CONFIG_PARSE_COMMAND_ENABLED (1)
|
||||
/*!< 1: shell support enabled, 0: otherwise */
|
||||
#endif
|
||||
|
||||
#endif /* __McuMinINI_CONFIG_H */
|
||||
Reference in New Issue
Block a user