3.27_433:添加UART2调试打印、IO监控、指令解析和继电器控制模块。

能够接收UART2指令控制继电器开关,或向UART2发送四路IO输入状态,并使用轮询方式检测IO状态进行及时反馈。
This commit is contained in:
2026-03-27 10:09:13 +08:00
parent f548593c59
commit 71027ebc46
76 changed files with 6789 additions and 1803 deletions

View File

@ -22,53 +22,57 @@ Dialog DLL: TCM.DLL V1.56.6.0
<h2>Project:</h2>
C:\workfile\E32-433\software\E32-433TBH-SC\MDK-ARM\project.uvprojx
Project File Date: 03/25/2026
Project File Date: 03/26/2026
<h2>Output:</h2>
*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'project'
compiling rf433_tx_app.c...
assembling startup_stm32f103xb.s...
compiling spi.c...
compiling systick.c...
compiling main.c...
compiling stm32f1xx_it.c...
compiling rf433_rx_app.c...
..\Core\Src\rf433_rx_app.c(23): warning: #188-D: enumerated type mixed with another type
static rf433_rx_app_t g_rx_app = {0};
..\Core\Src\rf433_rx_app.c: 1 warning, 0 errors
compiling usart.c...
compiling main.c...
compiling spi.c...
compiling gpio.c...
compiling cmd_parser.c...
compiling systick.c...
compiling stm32f1xx_it.c...
compiling usart.c...
compiling rf433_tx_app.c...
..\Core\Src\rf433_tx_app.c(28): warning: #188-D: enumerated type mixed with another type
static rf433_tx_app_t g_tx_app = {0};
..\Core\Src\rf433_tx_app.c: 1 warning, 0 errors
compiling stm32f1xx_hal_gpio_ex.c...
compiling stm32f1xx_hal.c...
compiling stm32f1xx_hal_spi.c...
compiling stm32f1xx_hal_rcc.c...
compiling relay_control.c...
compiling stm32f1xx_hal_msp.c...
compiling stm32f1xx_hal_rcc_ex.c...
compiling stm32f1xx_hal_gpio.c...
compiling stm32f1xx_hal_flash.c...
compiling stm32f1xx_hal_tim.c...
compiling io_monitor.c...
compiling stm32f1xx_hal.c...
compiling uart2_print.c...
compiling stm32f1xx_hal_spi.c...
compiling stm32f1xx_hal_pwr.c...
compiling stm32f1xx_hal_cortex.c...
compiling stm32f1xx_hal_gpio.c...
compiling stm32f1xx_hal_rcc.c...
compiling stm32f1xx_hal_flash.c...
compiling stm32f1xx_hal_rcc_ex.c...
compiling stm32f1xx_hal_dma.c...
compiling stm32f1xx_hal_exti.c...
compiling stm32f1xx_hal_tim.c...
compiling stm32f1xx_hal_flash_ex.c...
compiling stm32f1xx_hal_tim_ex.c...
compiling system_stm32f1xx.c...
compiling rf433.c...
..\Driver_RF433\Src\rf433.c(208): warning: #188-D: enumerated type mixed with another type
..\Driver_RF433\Src\rf433.c(209): warning: #188-D: enumerated type mixed with another type
ret = rf433_set_config(&rf433_current_config);
..\Driver_RF433\Src\rf433.c(212): warning: #188-D: enumerated type mixed with another type
..\Driver_RF433\Src\rf433.c(213): warning: #188-D: enumerated type mixed with another type
return ret;
..\Driver_RF433\Src\rf433.c(98): warning: #177-D: function "rf433_send_request_command" was declared but never referenced
..\Driver_RF433\Src\rf433.c(99): warning: #177-D: function "rf433_send_request_command" was declared but never referenced
static void rf433_send_request_command(rf433_request_cmd_t cmd)
..\Driver_RF433\Src\rf433.c(131): warning: #177-D: function "rf433_response_command_check" was declared but never referenced
..\Driver_RF433\Src\rf433.c(132): warning: #177-D: function "rf433_response_command_check" was declared but never referenced
static bool rf433_response_command_check(rf433_request_cmd_t cmd, uint8_t *buffer, uint8_t length)
..\Driver_RF433\Src\rf433.c: 4 warnings, 0 errors
compiling rf433_hal.c...
compiling stm32f1xx_hal_exti.c...
compiling system_stm32f1xx.c...
compiling stm32f1xx_hal_tim_ex.c...
compiling stm32f1xx_hal_uart.c...
compiling rf433_hal.c...
linking...
Program Size: Code=10204 RO-data=408 RW-data=64 ZI-data=3416
Program Size: Code=16622 RO-data=478 RW-data=152 ZI-data=3768
FromELF: creating hex file...
"project\project.axf" - 0 Error(s), 5 Warning(s).
@ -94,7 +98,7 @@ Package Vendor: Keil
* Component: ARM::CMSIS:CORE@6.1.1
Include file: CMSIS/Core/Include/tz_context.h
Build Time Elapsed: 00:00:12
Build Time Elapsed: 00:00:20
</pre>
</body>
</html>