generated from hulk/gd32f4xx_template_cmake_vscode
FilmForge: RS485 data link (USART0+DE PA8) and NTC temp (PC5 ADC0)
This commit is contained in:
+4
-7
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user