Commit Graph

14 Commits

Author SHA1 Message Date
许晟昊 ff554a472c Refactor app.c and board.c for improved display handling and memory management
- Updated sgl_print_hello function to clear the screen and render "Hello World" with improved task handling.
- Modified business_task to repeatedly display "Hello World" every second.
- Enhanced lcd_rtc_test to create and manage labels more efficiently, ensuring proper screen updates.
- Introduced dynamic text handling in sgl_label to manage memory for label text, allowing for automatic cleanup on destruction.
- Added cmd_mem_info function to display SGL memory usage via shell command.
2026-03-23 18:01:14 +08:00
许晟昊 9f04900092 Add textline, unzip image, and window widgets
- Implemented sgl_textline widget for displaying multi-line text with customizable properties such as font, color, and background.
- Added sgl_unzip_image widget to handle compressed image data, including drawing with transparency and color replacement.
- Created sgl_win widget for window management, featuring title text, close button, and customizable appearance attributes.
- Each widget includes necessary functions for creation, property setting, and rendering.
2026-03-23 13:07:16 +08:00
xushenghao 21e9d75e40 Implement DMA for USART1 reception and update FreeRTOS configuration
- Modified shell_port.c to replace interrupt-based UART reception with DMA.
- Introduced a DMA buffer for UART data and adjusted the shell buffer handling.
- Added idle interrupt handling to process incoming data from the DMA buffer.
- Updated freertos_f407.ioc to configure DMA for USART1 RX and TX.
- Enabled necessary NVIC interrupts for DMA streams associated with USART1.
2025-09-10 00:48:06 +08:00
xushenghao 9f37c7d763 Refactor shell task creation
- Removed the shell task handle from app.c as it is no longer needed.
- Moved the shell task creation to shell_port.c with updated parameters.
- Ensured the shell task is created with appropriate stack size and priority.
2025-09-10 00:41:42 +08:00
xushenghao c3b9daba20 Add Lua virtual machine and buffered stream implementations
- Introduced lvm.h for Lua virtual machine definitions, including functions for type conversion, fast table access, and integer operations.
- Implemented lzio.c and lzio.h for buffered stream handling, providing functionalities for reading from streams and managing buffers.
- Added necessary macros and function declarations to support efficient stream operations and memory management.
2025-09-10 00:38:07 +08:00
许晟昊 056b3e1d3e 增加USB 2025-03-12 00:37:12 +08:00
许晟昊 2ca3ace0cc 加入lvgl 2025-01-22 10:19:04 +08:00
许晟昊 344eeb0ee4 指定SRAM2 2025-01-22 09:28:56 +08:00
许晟昊 7bd9f1376a lcd154完成 2025-01-21 23:56:10 +08:00
许晟昊 0988d478e0 更新SD读写,用DMA失败 2025-01-21 16:23:43 +08:00
许晟昊 587e9158f2 更新RTC时钟 2025-01-21 13:37:26 +08:00
许晟昊 f0d23f8870 system 2025-01-21 11:08:21 +08:00
许晟昊 1e58b0a5d1 111 2025-01-21 11:07:31 +08:00
许晟昊 a34c2dfabf init 2025-01-21 11:00:48 +08:00