arch/tricore: Fix specific definitions in the generic UART module

We found that specific chip pin definitions were used in the generic UART source file. Since pin definitions vary across different chips, the UART pin definitions have been moved to the corresponding chip-specific directory.

Co-authored-by: Chengdong Wang <wangchengdong@lixiang.com>
Signed-off-by: Qinshuo Duan <duanqinshuo@lixiang.com>
This commit is contained in:
“duanqinshuo” 2025-11-13 20:26:57 +08:00 committed by Xiang Xiao
parent f98d89874c
commit 0b9c86905b
2 changed files with 5 additions and 3 deletions

View file

@ -27,4 +27,7 @@
* Included Files
****************************************************************************/
#define UART_PIN_RX IfxAsclin0_RXA_P14_1_IN /* UART receive port pin */
#define UART_PIN_TX IfxAsclin0_TX_P14_0_OUT /* UART transmit port pin */
#endif /* __ARCH_TRICORE_SRC_TC397_CHIP_H */

View file

@ -45,6 +45,8 @@
#include "Asclin/Asc/IfxAsclin_Asc.h"
#include <chip.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@ -160,9 +162,6 @@ static char g_uart0txbuffer[CONFIG_UART0_TXBUFSIZE];
#ifdef CONFIG_TC3XX_UART0
#define UART_PIN_RX IfxAsclin0_RXA_P14_1_IN /* UART receive port pin */
#define UART_PIN_TX IfxAsclin0_TX_P14_0_OUT /* UART transmit port pin */
/* Pin configuration */
static const IfxAsclin_Asc_Pins g_uart0_pins =