Skip to content

Commit 10993f0

Browse files
committed
Release v0.3: Add Windows build support, ESP-Hosted config, and documentation improvements
1 parent 611f2d6 commit 10993f0

15 files changed

Lines changed: 1195 additions & 128 deletions

File tree

CHANGELOG.md

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
# Changelog
2+
3+
[English](CHANGELOG_EN.md) | **中文**
4+
5+
## [V0.3] - 最新修改
6+
7+
### 新增功能
8+
9+
#### 文档
10+
- **新增中文版 README** (`README_CN.md`)
11+
- 完整的中文项目文档
12+
- 包含项目概述、功能列表、构建说明等
13+
14+
- **新增 ESP-Hosted 配置指南** (`docs/ESP_HOSTED_CONFIGURATION_GUIDE.md`)
15+
- 详细的 ESP-Hosted 配置说明
16+
- 包含 M5Stack Tab5 的 GPIO 配置信息
17+
- 提供 menuconfig 和直接编辑两种配置方法
18+
19+
#### Windows 平台支持
20+
- **增强 Windows 桌面构建支持**
21+
- 添加 vcpkg 构建方式支持
22+
- 添加 MSYS2 构建方式支持
23+
- 添加 Visual Studio 构建方式支持
24+
- 改进 SDL2 依赖查找和链接方式
25+
- 添加 MSVC 编译选项(UTF-8 编码、数学常量支持)
26+
27+
### 改进
28+
29+
#### 文档改进
30+
- **大幅更新 README.md**
31+
- 添加项目概述和功能列表
32+
- 添加详细的 Windows 构建说明(vcpkg/MSYS2/Visual Studio)
33+
- 添加 ESP32-P4 目标芯片说明和常见问题解决方案
34+
- 添加 Windows 编码错误解决方案
35+
- 添加 ESP-Hosted 配置说明章节
36+
- 改进构建步骤说明,明确执行目录
37+
38+
#### 桌面平台优化
39+
- **改进桌面平台事件处理** (`app/app.cpp`)
40+
- 添加 SDL 事件轮询处理
41+
- 添加 Windows 平台 CPU 使用率优化(添加延迟)
42+
- 改进跨平台兼容性
43+
44+
- **改进 LVGL 初始化** (`platforms/desktop/hal/components/hal_lvgl.cpp`)
45+
- 添加 SDL 窗口创建错误检查
46+
- 添加初始刷新调用,确保窗口可见
47+
- 改进 Windows 平台定时器处理(处理 `LV_NO_TIMER_READY` 情况)
48+
- 添加最小睡眠时间保护
49+
50+
- **改进应用启动器视图** (`app/apps/app_launcher/view/view.cpp`)
51+
- 添加桌面平台的强制刷新,确保内容正确显示
52+
53+
- **改进 CMake 构建配置** (`platforms/desktop/CMakeLists.txt`)
54+
- 改进 SDL2 查找和链接方式(支持 vcpkg 的 CMake targets)
55+
- 添加 MSVC 特定编译选项
56+
- 改进 C/C++ 文件分离处理
57+
- 添加条件链接 pthread(仅非 Windows 平台)
58+
- 添加 CMake 策略设置
59+
60+
#### 硬件平台改进
61+
- **更新音频编解码器依赖** (`platforms/tab5/components/m5stack_tab5/idf_component.yml`)
62+
- 升级 `espressif/esp_codec_dev``^1.3.0``^1.5.2`
63+
64+
- **修复音频编解码器配置** (`platforms/tab5/components/m5stack_tab5/m5stack_tab5.c`)
65+
- 修复 ES7210 麦克风选择宏错误(`ES7120_SEL_MIC*``ES7210_SEL_MIC*`
66+
- 注释掉未使用的 GPIO 接口代码,避免编译警告
67+
- 注释掉未使用的硬件增益配置
68+
- 注释掉已弃用的 I2C 端口配置,使用新的 bus_handle 方式
69+
70+
- **添加 ESP-Hosted 配置** (`platforms/tab5/sdkconfig.defaults`)
71+
- 配置 ESP32C6 Wi-Fi 协处理器
72+
- 配置 SDIO2 接口(Slot 1)
73+
- 配置 GPIO 引脚(CMD: 13, CLK: 12, D0-D3: 11-8, Reset: 54)
74+
- 设置 4 位总线宽度和 40MHz 时钟频率
75+
76+
#### 代码质量改进
77+
- **改进头文件兼容性** (`app/assets/assets.h`)
78+
- 添加 C++ 兼容性保护(`extern "C"`
79+
80+
### 技术细节
81+
82+
#### 构建系统
83+
- 支持 vcpkg 工具链文件
84+
- 改进 CMake targets 使用方式
85+
- 添加平台特定的编译选项
86+
87+
#### 平台特定优化
88+
- Windows: 添加 CPU 使用率优化
89+
- Windows: 改进定时器处理
90+
- Windows: 添加编码支持(UTF-8)
91+
92+
#### 依赖更新
93+
- `espressif/esp_codec_dev`: `^1.3.0``^1.5.2`
94+
95+
### 修复的问题
96+
97+
1. **修复 ES7210 麦克风选择宏错误**
98+
- 问题:使用了错误的宏名称 `ES7120_SEL_MIC*`
99+
- 修复:更正为 `ES7210_SEL_MIC*`
100+
101+
2. **修复桌面平台渲染问题**
102+
- 问题:桌面平台初始渲染可能不完整
103+
- 修复:添加强制刷新调用
104+
105+
3. **修复 Windows 平台高 CPU 使用率**
106+
- 问题:Windows 平台 CPU 使用率过高
107+
- 修复:添加适当的延迟处理
108+
109+
4. **修复 CMake 构建配置问题**
110+
- 问题:Windows 平台 SDL2 查找和链接问题
111+
- 修复:改进 SDL2 查找方式,支持 vcpkg
112+
113+
### 配置文件变更
114+
115+
- `platforms/tab5/sdkconfig`: 自动生成的配置文件更新
116+
- `platforms/tab5/dependencies.lock`: 依赖锁定文件更新
117+
118+
---
119+
120+
## 修改文件列表
121+
122+
### 新增文件
123+
- `README_CN.md` - 中文版 README
124+
- `docs/ESP_HOSTED_CONFIGURATION_GUIDE.md` - ESP-Hosted 配置指南
125+
126+
### 修改文件
127+
- `README.md` - 大幅更新文档
128+
- `app/app.cpp` - 添加 SDL 事件处理和 Windows 优化
129+
- `app/apps/app_launcher/view/view.cpp` - 添加桌面平台刷新
130+
- `app/assets/assets.h` - 添加 C++ 兼容性保护
131+
- `platforms/desktop/CMakeLists.txt` - 改进 Windows 构建支持
132+
- `platforms/desktop/hal/components/hal_lvgl.cpp` - 改进错误处理和 Windows 优化
133+
- `platforms/tab5/components/m5stack_tab5/idf_component.yml` - 更新依赖版本
134+
- `platforms/tab5/components/m5stack_tab5/m5stack_tab5.c` - 修复音频编解码器配置
135+
- `platforms/tab5/sdkconfig.defaults` - 添加 ESP-Hosted 配置
136+
- `platforms/tab5/sdkconfig` - 自动生成的配置更新
137+
- `platforms/tab5/dependencies.lock` - 依赖锁定文件更新
138+

CHANGELOG_EN.md

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
# Changelog
2+
3+
**English** | [中文](CHANGELOG.md)
4+
5+
## [V0.3] - Latest Changes
6+
7+
### New Features
8+
9+
#### Documentation
10+
- **Added Chinese README** (`README_CN.md`)
11+
- Complete Chinese project documentation
12+
- Includes project overview, feature list, build instructions, etc.
13+
14+
- **Added ESP-Hosted Configuration Guide** (`docs/ESP_HOSTED_CONFIGURATION_GUIDE.md`)
15+
- Detailed ESP-Hosted configuration instructions
16+
- Includes GPIO configuration information for M5Stack Tab5
17+
- Provides two configuration methods: menuconfig and direct editing
18+
19+
#### Windows Platform Support
20+
- **Enhanced Windows Desktop Build Support**
21+
- Added vcpkg build method support
22+
- Added MSYS2 build method support
23+
- Added Visual Studio build method support
24+
- Improved SDL2 dependency finding and linking
25+
- Added MSVC compilation options (UTF-8 encoding, math constants support)
26+
27+
### Improvements
28+
29+
#### Documentation Improvements
30+
- **Major README.md Update**
31+
- Added project overview and feature list
32+
- Added detailed Windows build instructions (vcpkg/MSYS2/Visual Studio)
33+
- Added ESP32-P4 target chip description and common issue solutions
34+
- Added Windows encoding error solutions
35+
- Added ESP-Hosted configuration section
36+
- Improved build step instructions with clear execution directory
37+
38+
#### Desktop Platform Optimization
39+
- **Improved Desktop Platform Event Handling** (`app/app.cpp`)
40+
- Added SDL event polling
41+
- Added Windows platform CPU usage optimization (added delay)
42+
- Improved cross-platform compatibility
43+
44+
- **Improved LVGL Initialization** (`platforms/desktop/hal/components/hal_lvgl.cpp`)
45+
- Added SDL window creation error checking
46+
- Added initial refresh call to ensure window visibility
47+
- Improved Windows platform timer handling (handling `LV_NO_TIMER_READY` case)
48+
- Added minimum sleep time protection
49+
50+
- **Improved Application Launcher View** (`app/apps/app_launcher/view/view.cpp`)
51+
- Added forced refresh for desktop platform to ensure correct content display
52+
53+
- **Improved CMake Build Configuration** (`platforms/desktop/CMakeLists.txt`)
54+
- Improved SDL2 finding and linking (supports vcpkg CMake targets)
55+
- Added MSVC-specific compilation options
56+
- Improved C/C++ file separation handling
57+
- Added conditional pthread linking (non-Windows platforms only)
58+
- Added CMake policy settings
59+
60+
#### Hardware Platform Improvements
61+
- **Updated Audio Codec Dependency** (`platforms/tab5/components/m5stack_tab5/idf_component.yml`)
62+
- Upgraded `espressif/esp_codec_dev` from `^1.3.0` to `^1.5.2`
63+
64+
- **Fixed Audio Codec Configuration** (`platforms/tab5/components/m5stack_tab5/m5stack_tab5.c`)
65+
- Fixed ES7210 microphone selection macro error (`ES7120_SEL_MIC*``ES7210_SEL_MIC*`)
66+
- Commented out unused GPIO interface code to avoid compilation warnings
67+
- Commented out unused hardware gain configuration
68+
- Commented out deprecated I2C port configuration, using new bus_handle method
69+
70+
- **Added ESP-Hosted Configuration** (`platforms/tab5/sdkconfig.defaults`)
71+
- Configured ESP32C6 Wi-Fi coprocessor
72+
- Configured SDIO2 interface (Slot 1)
73+
- Configured GPIO pins (CMD: 13, CLK: 12, D0-D3: 11-8, Reset: 54)
74+
- Set 4-bit bus width and 40MHz clock frequency
75+
76+
#### Code Quality Improvements
77+
- **Improved Header File Compatibility** (`app/assets/assets.h`)
78+
- Added C++ compatibility protection (`extern "C"`)
79+
80+
### Technical Details
81+
82+
#### Build System
83+
- Support for vcpkg toolchain file
84+
- Improved CMake targets usage
85+
- Added platform-specific compilation options
86+
87+
#### Platform-Specific Optimizations
88+
- Windows: Added CPU usage optimization
89+
- Windows: Improved timer handling
90+
- Windows: Added encoding support (UTF-8)
91+
92+
#### Dependency Updates
93+
- `espressif/esp_codec_dev`: `^1.3.0``^1.5.2`
94+
95+
### Fixed Issues
96+
97+
1. **Fixed ES7210 Microphone Selection Macro Error**
98+
- Issue: Used incorrect macro name `ES7120_SEL_MIC*`
99+
- Fix: Corrected to `ES7210_SEL_MIC*`
100+
101+
2. **Fixed Desktop Platform Rendering Issue**
102+
- Issue: Desktop platform initial rendering might be incomplete
103+
- Fix: Added forced refresh call
104+
105+
3. **Fixed Windows Platform High CPU Usage**
106+
- Issue: Windows platform had high CPU usage
107+
- Fix: Added appropriate delay handling
108+
109+
4. **Fixed CMake Build Configuration Issue**
110+
- Issue: Windows platform SDL2 finding and linking problems
111+
- Fix: Improved SDL2 finding method, supporting vcpkg
112+
113+
### Configuration File Changes
114+
115+
- `platforms/tab5/sdkconfig`: Auto-generated configuration file update
116+
- `platforms/tab5/dependencies.lock`: Dependency lock file update
117+
118+
---
119+
120+
## Modified Files List
121+
122+
### New Files
123+
- `README_CN.md` - Chinese README
124+
- `docs/ESP_HOSTED_CONFIGURATION_GUIDE.md` - ESP-Hosted Configuration Guide
125+
126+
### Modified Files
127+
- `README.md` - Major documentation update
128+
- `app/app.cpp` - Added SDL event handling and Windows optimization
129+
- `app/apps/app_launcher/view/view.cpp` - Added desktop platform refresh
130+
- `app/assets/assets.h` - Added C++ compatibility protection
131+
- `platforms/desktop/CMakeLists.txt` - Improved Windows build support
132+
- `platforms/desktop/hal/components/hal_lvgl.cpp` - Improved error handling and Windows optimization
133+
- `platforms/tab5/components/m5stack_tab5/idf_component.yml` - Updated dependency version
134+
- `platforms/tab5/components/m5stack_tab5/m5stack_tab5.c` - Fixed audio codec configuration
135+
- `platforms/tab5/sdkconfig.defaults` - Added ESP-Hosted configuration
136+
- `platforms/tab5/sdkconfig` - Auto-generated configuration update
137+
- `platforms/tab5/dependencies.lock` - Dependency lock file update
138+

0 commit comments

Comments
 (0)