idf.py reconfigure 触发的 idf-component-manager 版本刷新副作用: - espressif/dl_fft, esp_jpeg, freetype 等组件的小版本更新 不影响项目功能,与 Phase 10 无直接关系。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
63 lines
1.8 KiB
C
63 lines
1.8 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: ISC
|
|
*/
|
|
|
|
#ifndef HEATSHRINK_CONFIG_H
|
|
#define HEATSHRINK_CONFIG_H
|
|
|
|
#if __has_include("sdkconfig.h")
|
|
#include "sdkconfig.h"
|
|
#if defined(CONFIG_HEATSHRINK_DYNAMIC_ALLOC)
|
|
#define HEATSHRINK_DYNAMIC_ALLOC CONFIG_HEATSHRINK_DYNAMIC_ALLOC
|
|
#else
|
|
#define HEATSHRINK_DYNAMIC_ALLOC 1
|
|
#endif
|
|
#else
|
|
#ifndef HEATSHRINK_DYNAMIC_ALLOC
|
|
#define HEATSHRINK_DYNAMIC_ALLOC 1
|
|
#endif
|
|
#endif
|
|
|
|
#if HEATSHRINK_DYNAMIC_ALLOC
|
|
/* Optional replacement of malloc/free */
|
|
#define HEATSHRINK_MALLOC(SZ) malloc(SZ)
|
|
#define HEATSHRINK_FREE(P, SZ) free(P)
|
|
#else
|
|
/* Required parameters for static configuration */
|
|
#if defined(CONFIG_HEATSHRINK_STATIC_INPUT_BUFFER_SIZE)
|
|
#define HEATSHRINK_STATIC_INPUT_BUFFER_SIZE CONFIG_HEATSHRINK_STATIC_INPUT_BUFFER_SIZE
|
|
#else
|
|
#define HEATSHRINK_STATIC_INPUT_BUFFER_SIZE 32
|
|
#endif
|
|
|
|
#if defined(CONFIG_HEATSHRINK_STATIC_WINDOW_BITS)
|
|
#define HEATSHRINK_STATIC_WINDOW_BITS CONFIG_HEATSHRINK_STATIC_WINDOW_BITS
|
|
#else
|
|
#define HEATSHRINK_STATIC_WINDOW_BITS 8
|
|
#endif
|
|
|
|
#if defined(CONFIG_HEATSHRINK_STATIC_LOOKAHEAD_BITS)
|
|
#define HEATSHRINK_STATIC_LOOKAHEAD_BITS CONFIG_HEATSHRINK_STATIC_LOOKAHEAD_BITS
|
|
#else
|
|
#define HEATSHRINK_STATIC_LOOKAHEAD_BITS 4
|
|
#endif
|
|
#endif
|
|
|
|
/* Turn on logging for debugging. */
|
|
#if defined(CONFIG_HEATSHRINK_DEBUGGING_LOGS)
|
|
#define HEATSHRINK_DEBUGGING_LOGS CONFIG_HEATSHRINK_DEBUGGING_LOGS
|
|
#else
|
|
#define HEATSHRINK_DEBUGGING_LOGS 0
|
|
#endif
|
|
|
|
/* Use indexing for faster compression. (This requires additional space.) */
|
|
#if defined(CONFIG_HEATSHRINK_USE_INDEX)
|
|
#define HEATSHRINK_USE_INDEX CONFIG_HEATSHRINK_USE_INDEX
|
|
#else
|
|
#define HEATSHRINK_USE_INDEX 1
|
|
#endif
|
|
|
|
#endif
|