Commit Graph

5 Commits

Author SHA1 Message Date
许晟昊 2c45a45549 Refactor shell configuration and improve delay handling
- Changed delay function from vTaskDelay to HAL_Delay in lcd_test_clear to ensure proper timing in the LCD test.
- Updated shell_cfg.h to include "shell_cfg_user.h" by default if SHELL_CFG_USER is not defined.
- Modified shell_cfg_user.h to adjust shell behavior settings, including enabling/disabling command line triggers and memory allocation methods.
- Commented out shell lock and unlock functions in shell_port.c to disable locking mechanism for the shell.
2026-03-24 08:24:50 +08:00
许晟昊 0d9aa2d8d2 Refactor USB and application task handling
- Updated USB OTG FS interrupt priority to the highest level for improved responsiveness.
- Refactored application task to use a flow control structure for better timing management.
- Removed unnecessary FreeRTOS dependencies from shell port implementation.
- Disabled shell task loop for non-RTOS environments, allowing for more flexible shell usage.
- Adjusted flow tick rate for finer control over timing.
- Cleaned up project configuration to remove unused FreeRTOS task definitions and streamline NVIC settings.
2026-03-23 19:12:44 +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