FilmForge: RS485 data link (USART0+DE PA8) and NTC temp (PC5 ADC0)

This commit is contained in:
2026-10-09 19:13:15 +08:00
parent 8feba5e015
commit 24ddb7046e
12 changed files with 402 additions and 197 deletions
+4 -7
View File
@@ -36,6 +36,7 @@ OF SUCH DAMAGE.
#include "systick.h"
#include "uart.h"
#include "uart_ring_buffer.h"
#include "rs485.h"
#include "led.h"
#include "board_config.h"
@@ -141,16 +142,12 @@ void SysTick_Handler(void) {
delay_decrement();
}
/* 调试串口静态绑定 USART1(PA2/PA3),直接调用其处理函数。
若业务改用其它串口,同步修改 board_config.h 的 UART_* 并在此补对应 IRQHandler。 */
/* 串口中断静态绑定:USART0 = RS485 数据口(rs485.c),USART1 = debug 串口(uart.c)。
若业务改用其它串口,同步修改 board_config.h 并在此调整对应 IRQHandler。 */
void USART0_IRQHandler(void) {
usart0_irq_handler();
rs485_irq_handler();
}
void USART1_IRQHandler(void) {
usart1_irq_handler();
}
void USART2_IRQHandler(void) {
usart2_irq_handler();
}