arch/tricore: remove magic number in tr3xx uart config

Replace magic number with macro for better code readability.

Signed-off-by: xiezhanpeng3 <xiezhanpeng3@lixiang.com>
This commit is contained in:
xiezhanpeng3
2025-11-04 10:23:29 +08:00
committed by Matteo Golin
parent c342c0851f
commit 6238da1355
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -34,6 +34,7 @@
/****************************************************************************
* Pre-processor Prototypes
****************************************************************************/
#define TRICORE_UART_RX_IRQ 21
/****************************************************************************
* Public Types
+1 -1
View File
@@ -179,7 +179,7 @@ static struct up_dev_s g_uart0priv =
.uartbase = &MODULE_ASCLIN0,
.pins = &g_uart0_pins,
.baud = CONFIG_UART0_BAUD,
.irq = 21,
.irq = TRICORE_UART_RX_IRQ,
};
static uart_dev_t g_uart0port =